Prod build failed
See original GitHub issuePLEASE MAKE SURE THAT:
- you searched similar issues online (9/10 issues in this repo are solved by googling, so please…do it)
- you provide an online demo I can see without having to replicate your environment
- you help me by debugging your issue, and if you can’t, do go on filling out this form
I’m submitting a … (check one with “x”)
[ ] bug report => search github for a similar issue or PR before submitting
[ ] support request/question
Notice: feature requests will be ignored, submit a PR if you'd like
Current behavior
I want to build with this command:
ng build --aot=true --prod --build-optimizer --configuration=dev --outputHashing=all
But I got this error:
ERROR in ./node_modules/ng2-material-dropdown/fesm5/ng2-material-dropdown.js
TypeError: Cannot read property 'kind' of undefined at isAngularDecoratorMetadataExpression
Expected behavior
Run like dev & staging mode
Minimal reproduction of the problem with instructions (if applicable)
Download Angular 8, install ngx chips
What do you use to build your app?. Please specify the version
Angular-CLI
Angular version:
8.2.0.
ngx-chips version:
2.0.2
Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
Issue Analytics
- State:
- Created 4 years ago
- Comments:20 (7 by maintainers)
Hi everyone, I had a look at the issue as promised: my build can’t reproduce the issue you all have; also had a look at the other package’s issue.
My gut feeling is that it may be due to a package version (angular-devkit/build-angular):
Can you try to use the same versions as above? Or share which exact versions you’re using?
That’s not really a solution, buildOptimzer is an important setting. If you set the correct versions the problem should be solved