Unexpected value PushNotificationComponent (only when --prod)
Opened this issue · 0 comments
Hello, i´m trying to migrate an old app from angular 2 cli version 1.0.0-beta.18. to
angular 5 and
i have this issue.
when i try to do
ng serve or ng build
all goes without erros but if i do
ng serve --aot or i do ng build --prod
i see the next error message
ERROR in : Unexpected value 'PushNotificationComponent in c:/../node_modules/ng2-notifications/src/app/components/notification.component.d.ts' declared by the module 'AppModule in c:/.../src/app/app.module.ts'. Please add a @Pipe/@Directive/@component annotation.
have i do something wrong?
additional info
Angular CLI: 1.7.4
Node: 8.11.1
OS: win32 x64
Angular: 5.2.10
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router
@angular/cli: 1.7.4
@angular-devkit/build-optimizer: 0.3.2
@angular-devkit/core: 0.3.2
@angular-devkit/schematics: 0.3.2
@ngtools/json-schema: 1.2.0
@ngtools/webpack: 1.10.2
@schematics/angular: 0.3.2
@schematics/package-update: 0.3.2
typescript: 2.5.3
webpack: 3.11.0
thanks for sharing.