ngx-chips
ngx-chips copied to clipboard
Error in production build
Current behavior
While doing npm run build
ERROR in Directive ɵa in node_modules/ngx-chips/ngx-chips.d.ts has no selector, please add it! Cannot determine the module for class ɵa in node_modules/ngx-chips/ngx-chips.d.ts! Add ɵa to the NgModule to fix it.
Expected behavior Build should run successfully
What do you use to build your app?. Please specify the version App version : 2.2.1
Angular version: Angular version: 8
ngx-chips version: App version : 2.2.1
Same Issue over here
Same here!
Hi ! Same issue. Installing previous version did not work for me. Angular version : 7
@kevin0496 My app is in Angular 8, maybe in previous versions of angular do you need a older version of ngx-chips?
@rubengg86 I have been using version 2.1.0 for several months with Angular 7 but since few days it no longer works. I checked my package.json but nothing change..
Hi, I'm also having this error.
Directive ɵa in ... /node_modules/ngx-chips/ngx-chips.d.ts has no selector, please add it!
This may be for compatibility with Ivy, not really sure. If you are running < Angular 9,please use the previous 2.1.0
Dear All, I have got the same error and updated version from 2.1.0 to 2.2.2 as suggested above comments, I have checked both versions, but still error has not resolved. Please help
[email protected] angular 8.3.22
Same issue with angular 8.0.0 , "ngx-chips": "^2.1.0"
I am too facing same error 👎 . Angular 8 with ngx-chip: 2.1.0. I have also tried with ngx-chips 2.2.2 but still below error:
ERROR in Directive ɵa in /usr/src/app/node_modules/ngx-chips/ngx-chips.d.ts has no selector, please add it!
Cannot determine the module for class ɵa in /usr/src/app/node_modules/ngx-chips/ngx-chips.d.ts! Add ɵa to the NgModule to fix it.
And also not getting any error in local environment, this is happening only when trying to deploy in production using docker (node:12.14.1-alpine3.10)
That tells me you are not fixing the version
@Gbuomprisco Sorry what do you mean?
Same issue with angular 8.0.0 , "ngx-chips": "^2.1.0"
I have configured to older version "ngx-chips": "^1.9.8" . Which fixed my usecase
Thanks @vidhya03, I downgraded to 1.9.8 and it worked fine for me too.
Remove "^" from the package entry
Same issue with angular 8.0.0 , "ngx-chips": "^2.1.0"
I have configured to older version "ngx-chips": "^1.9.8" . Which fixed my usecase
@vidhya03 after degrading to 1.9.8 , it started giving https://github.com/Gbuomprisco/ngx-chips/issues/832 error
Downgrade to 2.1.0 but remove "^" so npm is going to use exactly this version
Thanks @Gbuomprisco, It's working fine for me now with version 2.1.0 without ^.
Thank you very much for the quick response :)