next js ReferenceError: location is not defined code example
Example: @editorjs/list window not defined
import dynamic from 'next/dynamic';
const List = dynamic(() => import("@editorjs/list"), { ssr: false });
import dynamic from 'next/dynamic';
const List = dynamic(() => import("@editorjs/list"), { ssr: false });