Skip to content
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

Getting reference Error : document is not defined #198

Open
rishabh-arch opened this issue Apr 21, 2023 · 1 comment
Open

Getting reference Error : document is not defined #198

rishabh-arch opened this issue Apr 21, 2023 · 1 comment

Comments

@rishabh-arch
Copy link

It works until I reload the page In NextJS

@anilpaudel
Copy link

try this

import dynamic from 'next/dynamic'
const Viewer = dynamic(
() => import('react-viewer'),
{ ssr: false }
)

#104 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants