mujtaba-ahmad / ngx-countdown

1 stars 3 forks source link

Errors in production AoT/JiT #3

Open shayl29 opened 7 years ago

shayl29 commented 7 years ago

Hello,

recieved an error while trying to deploy.

ERROR in Error encountered resolving symbol values statically. Calling function 'makeParamDecorator', function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol Injectable in C:/Users/user/Documents/Dev/wir/node_modules/ng2-countdown/node_modules/@an gular/core/src/di/metadata.d.ts, resolving symbol OpaqueToken in C:/Users/user/Documents/Dev/wir/node_modules/ng2-countdown/node_modules/@angular/core/src/di/ opaque_token.d.ts, resolving symbol OpaqueToken in C:/Users/user/Documents/Dev/wir/node_modules/ng2-countdown/node_modules/@angular/core/src/di/opaque_token.d .ts

I tried: ng serve --aot to run my application, without the aot it seems to work.

When building: ng build --prod --no-sourcemap & ng build --prod --no-sourcemap --aot I get the error mentioned above.

I've done some digging and seems to be an issue by the node_modules directory inside the ng2-countdown library.

node -v 6.11.0

npm -v 3.10.10

I'm using an old version of angular/cli 1.0.0-beta.32.3 but tried it with different versions. (lots of install/uninstall).

angular 2.4.0

Assistance with this will be highly appreciated. Thanks

irfanbabar commented 6 years ago

Latest code has been pushed. This issue will no longer occur.