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

npm install --save ngx-highlightjs provides a compatibility error with rxjs #205

Closed
avandal opened this issue Dec 11, 2021 · 4 comments
Closed

Comments

@avandal
Copy link

avandal commented Dec 11, 2021

Reproduction

Steps to reproduce:

  1. 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
@thekhegay
Copy link

@MurhafSousli is library updated correctly? 3836b34

@bwoodworth
Copy link

I am experiencing the same issue. Just a basic environment with angular 13 and material installed.

@raharrison
Copy link

Any chance of a version bump to get this lib working with Angular 13.1?

@MurhafSousli
Copy link
Owner

It is already Angular 13, the problem with the RXJS peer dependency, I will fix it shortly

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

5 participants