MurhafSousli / ngx-highlightjs

Angular syntax highlighting module

Home Page:https://ngx-highlight.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

avandal opened this issue · comments

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

@MurhafSousli is library updated correctly? 3836b34

commented

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

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

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