1import dynamic from 'next/dynamic';
2const List = dynamic(() => import("@editorjs/list"), { ssr: false });
1There is a solution at Stackoverflow please check out the link below:
2https://stackoverflow.com/questions/65819812/location-is-not-defined-error-in-react-next-js/67670615#67670615