Hi,
I generated an angular 6 library, using the CLI. Then refactored some code
into it.
Now I'm getting the below error when I build. I can't understand the error,
and searching online has not given me any clear indication why this is
failing.
Has anyone seen this before? Obfuscated some names in the log below.
Building Angular Package
Building entry point '****-web-lib'
Rendering Stylesheets
Rendering Templates
Compiling TypeScript sources through ngc
BUILD ERROR
Error during template compile of 'Injectable'
Function calls are not supported in decorators but 'ɵmakeDecorator' was
called.
Error during template compile of 'Injectable'
Function calls are not supported in decorators but 'ɵmakeDecorator' was
called.
Error during template compile of 'Injectable'
Function calls are not supported in decorators but 'ɵmakeDecorator' was
called.
Error during template compile of 'Injectable'
Function calls are not supported in decorators but 'ɵmakeDecorator' was
called.
Error during template compile of 'Injectable'
Function calls are not supported in decorators but 'ɵmakeDecorator' was
called.
Error during template compile of 'Injectable'
Function calls are not supported in decorators but 'ɵmakeDecorator' was
called.
@angular\core\core.ts(194,50): Error during template compile of 'NgModule'
Function calls are not supported in decorators.
................................
..................................
Error during template compile of 'Injectable'
Function calls are not supported in decorators but 'ɵmakeDecorator' was
called.
at Object.<anonymous>
(C:\Users\****\source\repos\****-web-ui\webapp\node_modules\ng-packagr\lib\ngc\compile-source-files.js:53:68)
at Generator.next (<anonymous>)
at
C:\Users\****\source\repos\****-web-ui\webapp\node_modules\ng-packagr\lib\ngc\compile-source-files.js:7:71
at new Promise (<anonymous>)
at __awaiter
(C:\Users\****\source\repos\****-web-ui\webapp\node_modules\ng-packagr\lib\ngc\compile-source-files.js:3:12)
at Object.compileSourceFiles
(C:\Users\****\source\repos\****-web-ui\webapp\node_modules\ng-packagr\lib\ngc\compile-source-files.js:19:12)
at Object.<anonymous>
(C:\Users\****\source\repos\****-web-ui\webapp\node_modules\ng-packagr\lib\ng-v5\entry-point\ts\compile-ngc.transform.js:26:32)
at Generator.next (<anonymous>)
at
C:\Users\****\source\repos\****-web-ui\webapp\node_modules\ng-packagr\lib\ng-v5\entry-point\ts\compile-ngc.transform.js:7:71
at new Promise (<anonymous
Thanks
Sam
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.