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

Issue with nextjs + hosted studio #58

Open
magicspon opened this issue Jan 4, 2023 · 1 comment
Open

Issue with nextjs + hosted studio #58

magicspon opened this issue Jan 4, 2023 · 1 comment

Comments

@magicspon
Copy link

Heyo,

I'm getting an error when using with nextjs 13.

When I navigate to my desk, at /studio I'm seeing a big ole error:

Error: require() of ES Module /Users/magicspon/bla/node_modules/react-markdown/index.js from /Users/magicspon/bla/node_modules/@uiw/react-markdown-preview/lib/index.js not supported.
Instead change the require of /Users/magicspon/bla/node_modules/react-markdown/index.js in /Users/magicspon/bla/node_modules/@uiw/react-markdown-preview/lib/index.js to a dynamic import() which is available in all CommonJS modules.

Has anyone managed to use this on a hosted nextjs site? I suspect the issue is next expects import/export rather than common js.

cheers

@Ali-TM-original
Copy link

Does this issue still exists?

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