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

Vuex 4.0.0 esm-browser build broken #1985

Open
sfaut opened this issue May 23, 2021 · 6 comments
Open

Vuex 4.0.0 esm-browser build broken #1985

sfaut opened this issue May 23, 2021 · 6 comments
Labels

Comments

@sfaut
Copy link

sfaut commented May 23, 2021

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 sfaut changed the title Vuex 4.0.0 esm-bundler build broken Vuex 4.0.0 esm-browser build broken May 24, 2021
@Alanscut
Copy link
Contributor

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

@kiaking kiaking added the 4.x label Jun 1, 2021
@kiaking
Copy link
Member

kiaking commented Jun 1, 2021

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.

@catsmeatman
Copy link

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.

@winternet-studio
Copy link

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

@YousofSayed
Copy link

no solution yet??

@catsmeatman
Copy link

no solution yet??

use Pinia

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants