Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected value PushNotificationComponent (only when --prod) #26

Open
arrayman opened this issue May 10, 2018 · 0 comments
Open

Unexpected value PushNotificationComponent (only when --prod) #26

arrayman opened this issue May 10, 2018 · 0 comments

Comments

@arrayman
Copy link

arrayman commented May 10, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant