Open megasharks opened 7 years ago
I'm sorry, but I seem to be a bit confused on how I should implement the fixes.
I'm using TSC and Angular CLI (1.0.3). The weird thing is, when I'm serving my project (ng serve) this issue arises.
But, when I change my import in my app.module
from:
PopupModule.forRoot()
to PopupModule
, nothing is complaining and my webpack compiles just fine. When I change it again to PopupModule.forRoot()
, again nothing complains and webpack compiles.... when I stop ng serve, however, and reserve my project it all goes BOOM again... ???
If there are things in my comment not making any sense... sorry for that, I'm still learning Angular and have only little development experience... .
Greetings dear contributors. Thank you for your effort with this very useful component. Encountered a problem while running ng serve build --target=production . Angular 4.0.0 and Angular cli 1.0.2. Below is the error. //////////////////////////////////// ERROR in Error encountered resolving symbol values statically. Calling function 'makeDecorator', function calls are not s upported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol Injectable in C:/Users/Tigran/Documents/projects/Nebula 2/node_modules/ng2-opd-popup/node_modules/@angular/core/src/di/metadata.d.t s, resolving symbol OpaqueToken in C:/Users/Tigran/Documents/projects/Nebula 2/node_modules/ng2-opd-popup/node_modules/@a ngular/core/src/di/opaque_token.d.ts, resolving symbol OpaqueToken in C:/Users/Tigran/Documents/projects/Nebula 2/node_mo dules/ng2-opd-popup/node_modules/@angular/core/src/di/opaque_token.d.ts //////////////////////////////////////////////////////////////////////////////////////////////////////////////// two article were found that hopefully will resolve the problem with compilation. Thank you in advance!
https://medium.com/@isaacplmann/making-your-angular-2-library-statically-analyzable-for-aot-e1c6f3ebedd5 https://medium.com/@isaacplmann/getting-your-angular-2-library-ready-for-aot-90d1347bcad