ngx-chips: Prod build failed
PLEASE 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 ]
About this issue
- Original URL
- State: closed
- Created 5 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
Hi, I’m gonna take a look during the weekend, hope to fix it
Nice, if someone else can confirm, I’ll close the issue
I am also having the same issue on V2.1.0
There is a bit of information here: https://github.com/NileshPatel17/ng-multiselect-dropdown/issues/178
I had the same issue with my library. Seems like updating the @angular/cli solves the problem. I found more related issues: @angular/cli ngx-quill but haven’t found a way to create a package that both works on previous and latest @angular/cli version
I have the same issue. @tidusjar While it is the exact same error message i get, I don’t understand what the connection is from this library, to the ng-multiselect-dropdown repo? This repo seems to depend on ng2-material-dropdown and not the above?