mac-s-g / react-json-view

JSON viewer for react
https://mac-s-g.github.io/react-json-view/demo/dist/
MIT License
3.42k stars 530 forks source link

no document error on page refresh #425

Open usama-hassan-khan opened 1 year ago

usama-hassan-khan commented 1 year ago

i am facing an issue when I reload the page,getting no document error,kindly help image

JoeRandom commented 1 year ago

@usama-hassan-khan Please check the issue #296.

heypran commented 1 year ago

Quoting the response: For users using nextjs, you can use next/dynamic for this case

const DynamicReactJson = dynamic(import('react-json-view'), { ssr: false });
<DynamicReactJson src={yourData}

I think we can close this.