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

Dynamic import using next/dynamic throws require.e is not a function error #358

Closed
pascuflow opened this issue Mar 10, 2022 · 2 comments
Closed

Comments

@pascuflow
Copy link

Hi,

So I occasionally get this error when I navigate to my page in next js, if I refresh then the page loads fine.

Screenshot from 2022-03-10 10-41-58
Screenshot from 2022-03-10 10-47-56

import "@uiw/react-md-editor/markdown-editor.css";
import "@uiw/react-markdown-preview/markdown.css";
import dynamic from "next/dynamic";
import rehypeSanitize from "rehype-sanitize";

const MDEditor = dynamic(
    () => import("@uiw/react-md-editor").then((mod) => mod.default),
    { ssr: false }
);




@jaywcjlove
Copy link
Member

@pascuflow
Copy link
Author

Cannot seem to reproduce reiliably, going to close.

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

2 participants