Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in production build #976

Open
Ananya-96 opened this issue Oct 16, 2020 · 19 comments
Open

Error in production build #976

Ananya-96 opened this issue Oct 16, 2020 · 19 comments

Comments

@Ananya-96
Copy link

Ananya-96 commented Oct 16, 2020

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
Copy link

Same Issue over here

@relaxedleaf
Copy link

Same here!

@rubengg86
Copy link

Hi!, Same issue, fixed installing previous version 2.1.0

npm i ngx-chips@2.1.0

@kevin0496
Copy link

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

@rubengg86
Copy link

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

@kevin0496
Copy link

@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
Copy link

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
Copy link
Owner

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

@kedarSRKS
Copy link

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
Copy link
Contributor

vidhya03 commented Dec 9, 2020

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

@VijaySutariaJCD
Copy link

VijaySutariaJCD commented Jan 7, 2021

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
Copy link
Owner

That tells me you are not fixing the version

@VijaySutariaJCD
Copy link

@Gbuomprisco Sorry what do you mean?

@vidhya03
Copy link
Contributor

vidhya03 commented Jan 8, 2021

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
Copy link

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

@Gbuomprisco
Copy link
Owner

Remove "^" from the package entry

@VijaySutariaJCD
Copy link

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 #832 error

@Gbuomprisco
Copy link
Owner

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

@VijaySutariaJCD
Copy link

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

Thank you very much for the quick response :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants