Open igaimerca opened 1 year ago
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 });