vuex icon indicating copy to clipboard operation
vuex copied to clipboard

Vuex 4.0.0 esm-browser build broken

Open sfaut opened this issue 3 years ago • 6 comments

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

sfaut avatar May 23 '21 21:05 sfaut

Duplicate with #1960. And the same issue exists in vue-router-next, see #694, there doesn't seem to be a good solution.

Alanscut avatar May 26 '21 11:05 Alanscut

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.

kiaking avatar Jun 01 '21 15:06 kiaking

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.

catsmeatman avatar Sep 15 '21 12:09 catsmeatman

There is no solution to this yet? I want to use this directly in a ESM supported browser and without using npm...

winternet-studio avatar Sep 26 '21 07:09 winternet-studio

no solution yet??

YousofSayed avatar Jul 21 '23 15:07 YousofSayed

no solution yet??

use Pinia

catsmeatman avatar Jul 24 '23 08:07 catsmeatman