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

Is there any guide for integrating react-codemirror2 into NextJs? #287

Open
igaimerca opened this issue Aug 23, 2022 · 2 comments
Open

Is there any guide for integrating react-codemirror2 into NextJs? #287

igaimerca opened this issue Aug 23, 2022 · 2 comments

Comments

@igaimerca
Copy link

igaimerca commented Aug 23, 2022

image

@mrraghur
Copy link

mrraghur commented Aug 25, 2022

Hi. We are getting this error when we try to integrate code mirror with nextjs. It works well with reactJs but not nextJs. Can you or someone else guide me and @igaimerca. Thanks in advance

@zignis
Copy link

zignis commented Dec 10, 2022

Import it dynamically with the ssr option set to false as navigator is not available on the server side.

import dynamic from 'next/dynamic';

const CM = dynamic(() => import('path-to-package'), { ssr: false });

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

3 participants