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

Angular 10 [email protected] peer dependency can't be resolved

Open FaabLondon opened this issue 3 years ago • 2 comments

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 [email protected] npm ERR! node_modules/ngx-chips/node_modules/ng2-material-dropdown npm ERR! ng2-material-dropdown@">=0.11.0" from [email protected] 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

FaabLondon avatar Jun 04 '21 09:06 FaabLondon

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.

seohyun0120 avatar Jul 21 '21 07:07 seohyun0120

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

davutg avatar Aug 06 '21 12:08 davutg