Gbuomprisco / ngx-chips

Tag Input component for Angular
MIT License
899 stars 359 forks source link

Error in production build #976

Open Ananya-96 opened 3 years ago

Ananya-96 commented 3 years ago

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

tximpa91 commented 3 years ago

Same Issue over here

relaxedleaf commented 3 years ago

Same here!

rubengg86 commented 3 years ago

Hi!, Same issue, fixed installing previous version 2.1.0

npm i ngx-chips@2.1.0

kevin0496 commented 3 years ago

Hi ! Same issue. Installing previous version did not work for me. Angular version : 7

rubengg86 commented 3 years ago

@kevin0496 My app is in Angular 8, maybe in previous versions of angular do you need a older version of ngx-chips?

kevin0496 commented 3 years ago

@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..

stefancruz commented 3 years ago

Hi, I'm also having this error.

Directive ɵa in ... /node_modules/ngx-chips/ngx-chips.d.ts has no selector, please add it!

ngx-chips@2.2.2 angular@6.1

Gbuomprisco commented 3 years ago

This may be for compatibility with Ivy, not really sure. If you are running < Angular 9,please use the previous 2.1.0

kedarSRKS commented 3 years ago

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

ngx-chips@2.2.2 angular 8.3.22

vidhya03 commented 3 years ago

Same issue with angular 8.0.0 , "ngx-chips": "^2.1.0"

VijaySutariaJCD commented 3 years ago

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)

Gbuomprisco commented 3 years ago

That tells me you are not fixing the version

VijaySutariaJCD commented 3 years ago

@Gbuomprisco Sorry what do you mean?

vidhya03 commented 3 years ago

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

VijaySutariaJCD commented 3 years ago

Thanks @vidhya03, I downgraded to 1.9.8 and it worked fine for me too.

Gbuomprisco commented 3 years ago

Remove "^" from the package entry

VijaySutariaJCD commented 3 years ago

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

Gbuomprisco commented 3 years ago

Downgrade to 2.1.0 but remove "^" so npm is going to use exactly this version

VijaySutariaJCD commented 3 years ago

Thanks @Gbuomprisco, It's working fine for me now with version 2.1.0 without ^.

Thank you very much for the quick response :)