Ngx-chips: Error in production build

Created on 16 Oct 2020  路  19Comments  路  Source: Gbuomprisco/ngx-chips

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

Most helpful comment

Hi!, Same issue, fixed installing previous version 2.1.0

npm i [email protected]

All 19 comments

Same Issue over here

Same here!

Hi!, Same issue, fixed installing previous version 2.1.0

npm i [email protected]

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!

[email protected]
[email protected]

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 :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

altschuler picture altschuler  路  3Comments

Gbuomprisco picture Gbuomprisco  路  4Comments

matthewerwin picture matthewerwin  路  5Comments

cyrilrbt picture cyrilrbt  路  4Comments

Ignasimg picture Ignasimg  路  4Comments