-
-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
Vuex 4.0.0 esm-browser build broken #1985
Comments
Duplicate with #1960. And the same issue exists in vue-router-next, see #694, there doesn't seem to be a good solution. |
Thanks @Alanscut for pointing out. Let's see how we can handle this. Maybe we might end up writing up cookbook in the docs like suggested in Vue Router discussion. |
vuex.esm-browser.prod.js is buggy too. This version will be compressed and minified, but now vuex.esm-browser.prod.js is simple copy vuex.esm-browser.js. |
There is no solution to this yet? I want to use this directly in a ESM supported browser and without using npm... |
no solution yet?? |
use Pinia |
Version
4.0.0
Reproduction link
https://codepen.io/JCH77/pen/vYxmOBJ
Steps to reproduce
Use esm-browser builds
Import Vue 3.0.11 => OK
Import Vuex 4.0.0 => The following error occurs :
Uncaught TypeError: Failed to resolve module specifier "vue". Relative references must start with either "/", "./", or "../".
What is expected?
Vuex esm-browser build import success
What is actually happening?
Vuex esm-browser build import fail
The text was updated successfully, but these errors were encountered: