Gbuomprisco / ngx-chips

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

Angular 10 ng2-material-dropdown@0.11.0 peer dependency can't be resolved #995

Open FaabLondon opened 3 years ago

FaabLondon commented 3 years ago

I'm submitting a ... (check one with "x")

[x] bug report => search github for a similar issue or PR before submitting
[ ] support request/question

Notice: feature requests will be ignored, submit a PR if you'd like

Current behavior I am currently using Angular 10 and when trying to install ngx-chips I am getting the following issue Could not resolve dependency: npm ERR! peer @angular/animations@"^8.0.0" from ng2-material-dropdown@0.11.0 npm ERR! node_modules/ngx-chips/node_modules/ng2-material-dropdown npm ERR! ng2-material-dropdown@">=0.11.0" from ngx-chips@2.2.2 npm ERR! node_modules/ngx-chips npm ERR! ngx-chips@"2.2.2" from the root project

Expected behavior Fix dependencies

Minimal reproduction of the problem with instructions (if applicable) npm i ngx-chips

What do you use to build your app?. Please specify the version angular-cli 9.1.0

Angular version: 10.2.5

ngx-chips version: 2.2.2

Browser: all

seohyun0120 commented 3 years ago

Hi, I had a same problem. (Angular v6.x, ngx-chips v2.2.2, npm v7.19.x) If you're using npm v7.x, trynpm install ngx-chips --legacy-peer-deps. source: npm blog ➡️ Check peer dependencies. Hope this helps.

davutg commented 3 years ago

I used this lib in Ng6, upgraded the project to 7/8 without an issue related to this. While jumping to 9 I started getting errors because underlying Renderer2 (Angular Ivy), ngcc new generation compiler caused an incompatibility issue. Same happened for ngx-popover.

911

https://github.com/Gbuomprisco/ngx-chips/issues/911#issuecomment-640202660