-
-
Notifications
You must be signed in to change notification settings - Fork 143
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
ReferenceError: exports is not defined #719
Comments
@danez I see that it is needed in many places, especially in Vite projects. So are you suggesting that I should remove it or keep it? Removing it might affect certain use cases, but keeping it could cause issues like the one you encountered. What do you think? |
Technically the Maybe it would be better to remove the Could also leave the |
Have the same error. 4.23.8 runs perfectly but with 4.23.9 I get the "exports is not defined" error. |
Since #702 react-codemirror throws an error for me. I haven't had time to dig deeper, but it seems that the commons file is loaded, but because of "type:module" it is interpreted as ESM.
This is how I import in my source:
ref: reactjs/react-docgen#976
The text was updated successfully, but these errors were encountered: