vuex
vuex copied to clipboard
Vuex 4.0.0 esm-browser build broken
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
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??
no solution yet??
use Pinia