ngx-chips icon indicating copy to clipboard operation
ngx-chips copied to clipboard

Error in production build

Open Ananya-96 opened this issue 4 years ago • 19 comments

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

Ananya-96 avatar Oct 16 '20 13:10 Ananya-96

Same Issue over here

tximpa91 avatar Oct 19 '20 15:10 tximpa91

Same here!

relaxedleaf avatar Oct 20 '20 04:10 relaxedleaf

Hi!, Same issue, fixed installing previous version 2.1.0

npm i [email protected]

rubengg86 avatar Oct 20 '20 17:10 rubengg86

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

kevin0496 avatar Nov 12 '20 15:11 kevin0496

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

rubengg86 avatar Nov 12 '20 15:11 rubengg86

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

kevin0496 avatar Nov 12 '20 15:11 kevin0496

Hi, I'm also having this error.

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

[email protected] [email protected]

stefancruz avatar Nov 13 '20 19:11 stefancruz

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

Gbuomprisco avatar Nov 14 '20 19:11 Gbuomprisco

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

kedarSRKS avatar Dec 04 '20 12:12 kedarSRKS

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

vidhya03 avatar Dec 09 '20 12:12 vidhya03

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)

VijaySutariaJCD avatar Jan 07 '21 16:01 VijaySutariaJCD

That tells me you are not fixing the version

Gbuomprisco avatar Jan 07 '21 18:01 Gbuomprisco

@Gbuomprisco Sorry what do you mean?

VijaySutariaJCD avatar Jan 08 '21 09:01 VijaySutariaJCD

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 avatar Jan 08 '21 09:01 vidhya03

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

VijaySutariaJCD avatar Jan 08 '21 10:01 VijaySutariaJCD

Remove "^" from the package entry

Gbuomprisco avatar Jan 08 '21 12:01 Gbuomprisco

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

VijaySutariaJCD avatar Jan 08 '21 15:01 VijaySutariaJCD

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

Gbuomprisco avatar Jan 08 '21 19:01 Gbuomprisco

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

Thank you very much for the quick response :)

VijaySutariaJCD avatar Jan 08 '21 19:01 VijaySutariaJCD