-
Notifications
You must be signed in to change notification settings - Fork 703
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
Global not defined in ESM bundles. #284
Comments
This is the offending line: Line 3 in 9f30f82
I could remove this line and release a beta tomorrow to see... |
I had not seen the other issue, thank you for point it out to me. If you do need the offending statement would a |
Hi @dsm23, I've released a patch on |
🎉 This issue has been resolved in version 3.3.0-beta.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This issue has been resolved in version 3.3.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
works well, thank you |
You're welcome @dsm23 👌🏼 |
This is good news, thanks. I confirm that it works with snowpack without the Node polyfill. Now, I'll test it with Vite too :-D |
Also works with Vitejs 🥳 |
three
version: 0.125.2react-three-fiber
version: 5.3.18@react-three/drei
version: 3.2.2node
version: 15.5.1npm
(oryarn
) version: 2.4.0Problem description:
It appears that importing from the @react-three/drei library in one of the 2 snowpack react templates throws the ReferenceError: global is not defined. Issues appears to be specific to this library
The text was updated successfully, but these errors were encountered: