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

Failed to import - https://esm.sh/@react-three/drei?bundle #271

Closed
mashaal opened this issue Mar 7, 2022 · 4 comments
Closed

Failed to import - https://esm.sh/@react-three/drei?bundle #271

mashaal opened this issue Mar 7, 2022 · 4 comments
Labels
browser Not working in Browser bug Something isn't working

Comments

@mashaal
Copy link
Contributor

mashaal commented Mar 7, 2022

Failing module

When using the bundle option, it cannot find react-three/fiber

https://esm.sh/@react-three/drei?bundle

Error message

/* esm.sh - error */
throw new Error("[esm.sh] " + "esbuild: Could not resolve \"@react-three/fiber\"");
export default null;
@mashaal mashaal added the browser Not working in Browser label Mar 7, 2022
@nihgwu
Copy link

nihgwu commented Mar 7, 2022

Same here but different error, I tried to make those examples work here, but got SyntaxError: The requested module '/v67/[email protected]/es2021/mmd-parser.js' does not provide an export named 'CharsetEncoder' error

@ije
Copy link
Member

ije commented Mar 8, 2022

this happened because drei defines the @react-three/fiber in peerDespendencies, i will fix it

@ije ije added the bug Something isn't working label Mar 8, 2022
@nihgwu
Copy link

nihgwu commented Mar 8, 2022

@ije so that's not the same issue as I have? Should I create a new ticket for that, I just updated the links(linked to local env previously)

@ije
Copy link
Member

ije commented Mar 8, 2022

@nihgwu yes please

@ije ije closed this as completed in 747024a Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
browser Not working in Browser bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants