-
Notifications
You must be signed in to change notification settings - Fork 921
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
[BUG] Resolve dynamic imports #3038
Comments
This is more likely to be related to TL;DR |
This does seem to be a bug; thanks for filing! Will investigate. |
It seems that snowpack won't resolve the path when dynamic import has a variable in it. |
This seems related to #2861, right? |
Ah, right! This feature will solve the problem. |
@drwpow I think this can be closed as a duplicate. |
I'm expiriencing exactly the same thing. Any progress on this issue? |
Bug Report Quick Checklist
3.1.2
6.14.11
macOS Catalina 10.15.7
14.14.0
Describe the bug
Snowpack doesn't resolve dynamic imports:
Throws
Uncaught (in promise) TypeError: Failed to resolve module specifier '@fortawesome/free-brands-svg-icons/faFacebook.js'
To Reproduce
Reproducible example: https://gist.github.com/jaschaio/321e794e7f8fb15d4bf9dfa0da46656c
Expected behavior
I would expect snowpack to notice the dynamic import, and replace the module identifier with the build output directory.
The text was updated successfully, but these errors were encountered: