I generated a new project using angular-cli 1.0.0 and then I added the angular-prism library.
It works great in development, just as expected. It also works if I do a development build with
ng build
But I get an error when I try to make a production build using
ng build --prod
ERROR in Unexpected value 'PrismComponent' in [my-path]/testApp/node_modules/angular-prism/dist/angular-prism.js' declared by the module 'AppModule in src/app/app.module.ts. Please ass a @Pipe/@Directive/@component annotation
It seems to be a problem when compiling with AOT .
I generated a new project using angular-cli 1.0.0 and then I added the angular-prism library.
But I get an error when I try to make a production build usingIt works great in development, just as expected. It also works if I do a development build with
ERROR in Unexpected value 'PrismComponent' in [my-path]/testApp/node_modules/angular-prism/dist/angular-prism.js' declared by the module 'AppModule in src/app/app.module.ts. Please ass a @Pipe/@Directive/@component annotation
It seems to be a problem when compiling with AOT .