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

Import not works from version 0.0.34 #34

Closed
eXponenta opened this issue Dec 15, 2019 · 1 comment
Closed

Import not works from version 0.0.34 #34

eXponenta opened this issue Dec 15, 2019 · 1 comment

Comments

@eXponenta
Copy link
Contributor

Try change version from 0.0.35 on 0.0.33 and it start works, other (greater that 0.0.33) doesnot import correctly.

https://codesandbox.io/s/condescending-meninsky-yje0j

@gordonnl
Copy link
Contributor

What's strange is that if I download the zip of that project, install and run it, it works fine. I think codesandbox is doing something behind-the-scenes that doesn't work with es modules.

In the meantime, on this codesandbox template, you can replace 'ogl' with 'ogl/dist/ogl.umd.js' and it will work. This is recommended for all bundlers that still don't support es modules (browserify, Vue SSR). It's worth noting that Parcel does support es modules, which is why this issue is strange on the codesandbox platform...

This issue was closed.
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