We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Cannot find module '@uiw/react-codemirror/esm/useCodeMirror' imported from @uiw/react-codemirror/esm/index.js
on a simple import CodeMirror from "@uiw/react-codemirror";.
import CodeMirror from "@uiw/react-codemirror";
This is a Remix project built with Vite 5. "type": "module" is set on my package.json.
"type": "module"
package.json
This is the only package I have this issue with. Running on Node 22. On Node 20, I get Cannot use import statement outside a module.
Cannot use import statement outside a module
This makes me think it has something to do with ESM / CJS / … module resolution going wrong, but I can't really debug it more than that.
If I do a dynamic import(), it works fine.
import()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Cannot find module '@uiw/react-codemirror/esm/useCodeMirror' imported from @uiw/react-codemirror/esm/index.js
on a simple
import CodeMirror from "@uiw/react-codemirror";
.This is a Remix project built with Vite 5.
"type": "module"
is set on mypackage.json
.This is the only package I have this issue with. Running on Node 22. On Node 20, I get
Cannot use import statement outside a module
.This makes me think it has something to do with ESM / CJS / … module resolution going wrong, but I can't really debug it more than that.
If I do a dynamic
import()
, it works fine.The text was updated successfully, but these errors were encountered: