Skip to content

Production build #1

@biancaU

Description

@biancaU

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 .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions