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
Can't resolve 'highlight.js/lib/languages/node-repl' #343
Comments
In my yarn.lock file, lowlight@^1.14.0 is resolved to 1.16.0
I don't understand why lowlight@^1.14.0 resolve in 1.16 instead of 1.17. yarn why lowlight
yarn why v1.22.4
[1/4] Why do we have the module "lowlight"...?
[2/4] Initialising dependency graph...
[3/4] Finding dependency...
[4/4] Calculating file sizes...
=> Found "lowlight@1.17.0"
info Has been hoisted to "lowlight"
info This module exists because it's specified in "dependencies".
info Disk size without dependencies: "2.62MB"
info Disk size with unique dependencies: "5.09MB"
info Disk size with transitive dependencies: "5.12MB"
info Number of shared dependencies: 2
=> Found "react-syntax-highlighter#lowlight@1.16.0"
info This module exists because "react-syntax-highlighter" depends on it.
info Disk size without dependencies: "48KB"
info Disk size with unique dependencies: "2.51MB"
info Disk size with transitive dependencies: "2.54MB"
info Number of shared dependencies: 2
Done in 1.37s. |
It seems I found a way to make it work: I have removed I have also clean the cache of yarn ( Then |
Having the same issue on a next.js project that uses this module as a dependency. I had to do something similar but using npm myself. So |
I'm still getting the same error. You need to bump highlight.js also. |
Indeed I missed that! I assumed it was actually the case following the PR wich bump highlight.js to v10.4.1: #338 But actually, it just updated package-lock.json. Not package.json. |
Describe the bug
To Reproduce
Have react-syntax-highlighter installed with other package that depends on a version of highlight.js that's fixed to <10.4.0.
Expected behavior
react-syntax-highlighter depends on highlight.js@^10.4.0 (instead of ^10.1.1) where node-repl was added.
The text was updated successfully, but these errors were encountered: