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

not working with snowpack 3 #12

Open
felixroos opened this issue Feb 18, 2022 · 1 comment
Open

not working with snowpack 3 #12

felixroos opened this issue Feb 18, 2022 · 1 comment

Comments

@felixroos
Copy link

Hello! This lib seems to be not working with snowpack 3.3.7. I am getting this error:

Error [ERR_REQUIRE_ESM]: require() of ES Module 
node_modules/@mdx-js/mdx/index.js 
from 
node_modules/snowpack-plugin-mdx/dist/main/index.js 
not supported.
Instead change the require of 
node_modules/@mdx-js/mdx/index.js 
in 
node_modules/snowpack-plugin-mdx/dist/main/index.js 
to a dynamic import() which is available in all CommonJS modules.

I guess snowpack does not like the commonJS style import...
Is there any workaround?

@jaredLunde
Copy link
Owner

I'm not sure what changed 🤔 I'm not really using Snowpack anymore so I'd be happy to accept a PR for this

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