react-json-view
react-json-view copied to clipboard
react 18 peer dependencies error
Hi guys, with the new react v18 the dependencies cause an error when npm -i is executed. Can you please provide the fix to the dependencies error on installation? Thank you very much!
Is this project still being managed? It seems like it has been over 15 months from this posting that there was last a commit.
I hope the dev upgrade it because this project is useful (at least in my activities) and it will be bad if this project become "not maintained". We will see what happens.
The fix is already there (#402)... but @mac-s-g does not seem to be able or willing to continue the work on this repo
Sin! It's a nice project...but to continue with the fix as you mentioned it's kinda only the merge...so quite easy I guess...hoping that will be done, just to have React 18 project upgraded
Bumping here
npm ERR! Could not resolve dependency: npm ERR! peer react@"^17.0.0 || ^16.3.0 || ^15.5.4" from [email protected]
I'm getting this error in a React (v18) project. Is there a way to get this dependency resolved?
npm ERR! Could not resolve dependency: npm ERR! peer react@"^17.0.0 || ^16.3.0 || ^15.5.4" from [email protected]
I'm getting this error in a React (v18) project. Is there a way to get this dependency resolved?
yes, a temporary solution is to install your packages with
--legacy-peer-deps
but if we have the "fix" with the React 18 support, it will be much better :)
Thanks for your support 👍 @alenocera
I dont recomend to use --legacy-peer-deps
this can mishmash your package versions...
as mac-s-g does not seem to maintain this package anymore, I use: https://www.npmjs.com/package/@microlink/react-json-view
We as the community may should agree to go on with a fork that is maintained?
Both this and the @microlink/react-json-view fork depend on flux, which is unmaintained and results in npm install
warnings:
❯ npm i
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: [email protected]
npm WARN Found: [email protected]
npm WARN node_modules/react
npm WARN react@"^18.2.0" from the root project
npm WARN 23 more (@apollo/client, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer react@"^15.0.2 || ^16.0.0 || ^17.0.0" from [email protected]
npm WARN node_modules/@microlink/react-json-view/node_modules/flux
npm WARN flux@"~4.0.1" from @microlink/[email protected]
npm WARN node_modules/@microlink/react-json-view
npm WARN
npm WARN Conflicting peer dependency: [email protected]
npm WARN node_modules/react
npm WARN peer react@"^15.0.2 || ^16.0.0 || ^17.0.0" from [email protected]
npm WARN node_modules/@microlink/react-json-view/node_modules/flux
npm WARN flux@"~4.0.1" from @microlink/[email protected]
npm WARN node_modules/@microlink/react-json-view
cc @Kikobeats as the microlink repo doesn't have issues enabled
Fixed in https://github.com/TexteaInc/json-viewer
Hey, you can give this one a shot: https://github.com/YYsuni/react18-json-view
as mac-s-g does not seem to maintain this package anymore, I use: npmjs.com/package/@microlink/react-json-view
We as the community may should agree to go on with a fork that is maintained?
👍 this fork looks like the best option.
Other mentioned projects look like alternative libs, not immediate replacement forks.
We at Docusaurus are adopting this fork: https://github.com/facebook/docusaurus/pull/9116