-
Notifications
You must be signed in to change notification settings - Fork 21
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
unable to build using prod #31
Comments
The problem is, that there are no ngc metadatas, that are requiered for the usage with |
is that something that the angular2-flash-messages should provide or? |
@gemal I think so. Anyway I got a same problem. I use angular version 5 and angular2-flash-messages version 2.0.0 |
@gemal Yeah, they need to kick the ngc (angular compiler) and provide the generated metadata for the angular-cli. |
@moff I updated to 2.0.1 and also I removed forRoot() function. Now I get new error message :
I have this error when I run "ng build --prod" |
@gemal , @peymannj Hm, I think this problem has something to do with this angular/angular-cli#4647 |
@gemal , @peymannj check this comment angular/angular-cli#4647 (comment) |
Thank you so much. The answer in the link works ! Specifying paths to @angular inside AngularCLI's tsconfig.json prevented the error from happening. |
when I try to use --aot to build a project with FlashMessagesModule I get an error
ERROR in Error: Unexpected value ‘FlashMessagesModule in x/node_modules/angular2-flash-messages/module/module.d.ts’ imported by the module ‘AppModule in x/src/app/app.module.ts’. Please add a @NgModule annotation.
does FlashMessagesModule not work with aot yet?
The text was updated successfully, but these errors were encountered: