react-codemirror2
react-codemirror2 copied to clipboard
Is there any guide for integrating react-codemirror2 into NextJs?

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
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 });