npm install --save ngx-highlightjs provides a compatibility error with rxjs
avandal opened this issue · comments
avandal commented
Reproduction
Steps to reproduce:
- npm install --save ngx-highlightjs
Expected Behavior
A correct installation of ngx-highlightjs
Actual Behavior
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: my-docs@0.0.0
npm ERR! Found: rxjs@7.4.0
npm ERR! node_modules/rxjs
npm ERR! rxjs@"~7.4.0" from the root project
npm ERR! peer rxjs@"^6.5.3 || ^7.4.0" from @angular/common@13.1.0
npm ERR! node_modules/@angular/common
npm ERR! @angular/common@"~13.1.0" from the root project
npm ERR! peer @angular/common@"^13.0.0" from ngx-highlightjs@6.1.0
npm ERR! node_modules/ngx-highlightjs
npm ERR! ngx-highlightjs@"*" from the root project
npm ERR! 1 more (@angular/core)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer rxjs@"^6.0.0" from ngx-highlightjs@6.1.0
npm ERR! node_modules/ngx-highlightjs
npm ERR! ngx-highlightjs@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
Environment
- Node: 16.13.1
- npm: 8.3.0
- Angular CLI: 13.1.1
- Operating System: Windows / Ubuntu
Roman Khegay commented
@MurhafSousli is library updated correctly? 3836b34
Brian commented
I am experiencing the same issue. Just a basic environment with angular 13 and material installed.
Ryan Harrison commented
Any chance of a version bump to get this lib working with Angular 13.1?
Murhaf Sousli commented
It is already Angular 13, the problem with the RXJS peer dependency, I will fix it shortly