Open punit1108 opened 1 year ago
same here
It working via --legacy-peer-deps
npm switch.
It working via
--legacy-peer-deps
npm switch.
a better solution is to override this in package.json
{
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-json-view": "^1.21.3"
},
"overrides": {
"react-json-view": {
"react": "$react",
"react-dom": "$react-dom"
}
}
}
It working via
--legacy-peer-deps
npm switch.a better solution is to override this in package.json
{ "dependencies": { "react": "^18.2.0", "react-dom": "^18.2.0", "react-json-view": "^1.21.3" }, "overrides": { "react-json-view": { "react": "$react", "react-dom": "$react-dom" } } }
This is not working for me. I am still getting the same error.
It working via
--legacy-peer-deps
npm switch.a better solution is to override this in package.json
{ "dependencies": { "react": "^18.2.0", "react-dom": "^18.2.0", "react-json-view": "^1.21.3" }, "overrides": { "react-json-view": { "react": "$react", "react-dom": "$react-dom" } } }
This is not working for me. I am still getting the same error.
did you update your version of npm
, overrides
was added in v8.3.0
https://stackoverflow.com/a/70396201
It working via
--legacy-peer-deps
npm switch.a better solution is to override this in package.json
{ "dependencies": { "react": "^18.2.0", "react-dom": "^18.2.0", "react-json-view": "^1.21.3" }, "overrides": { "react-json-view": { "react": "$react", "react-dom": "$react-dom" } } }
This is not working for me. I am still getting the same error.
did you update your version of
npm
,overrides
was added in v8.3.0 https://stackoverflow.com/a/70396201
Hey thanks, I was on v8.1
please try https://github.com/Himself65/data-viewer
It working via
--legacy-peer-deps
npm switch.a better solution is to override this in package.json
{ "dependencies": { "react": "^18.2.0", "react-dom": "^18.2.0", "react-json-view": "^1.21.3" }, "overrides": { "react-json-view": { "react": "$react", "react-dom": "$react-dom" } } }
Unfortunately, this doesn't work if react-json-view
is in npm workspace.
I also couldn't fix with --legacy-peer-deps.
+1
+1
Hey there! You might want to give this one a try: https://github.com/YYsuni/react18-json-view
Github: https://github.com/uiwjs/react-json-view Website: https://uiwjs.github.io/react-json-view
Here is the size benchmark (using bundlephobia.com) against similar React libraries (found by npmjs.com/search
):
Hey there! You might want to give this one a try: https://github.com/YYsuni/react18-json-view
Look, I have added an editable feature and updated icons. Please feel free to submit an issue if you encounter any problems.
It working via
--legacy-peer-deps
npm switch.a better solution is to override this in package.json
{ "dependencies": { "react": "^18.2.0", "react-dom": "^18.2.0", "react-json-view": "^1.21.3" }, "overrides": { "react-json-view": { "react": "$react", "react-dom": "$react-dom" } } }
@Dilven Thank you very much for sharing this solution. Saved my deploy from a frontend competition 😅
I tried to install the library in one of my applications, which runs on react 18. But i got the following error -
Does it not support React 18?