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

[ERROR] Versions from 4.0.9 to 4.0.15 don't work on Codepen as ESM with ImportMaps #1414

Closed
angelhdzmultimedia opened this issue May 25, 2022 · 2 comments

Comments

@angelhdzmultimedia
Copy link

angelhdzmultimedia commented May 25, 2022

Version

4.0.15

Reproduction link

codepen.io

Steps to reproduce

  1. Create a vue@next codepen
  2. Imported vue as ESM with ImportMaps successfully.
  3. Tried the same with Vue router.
  4. Got error "Uncaught TypeError: Failed to resolve module specifier "@vue/devtools-api". Relative references must start with either "/", "./", or "../"."

What is expected?

Importing VueRouter as ESM with importMaps succesfully, the same way it went with vue@next.

What is actually happening?

Error Uncaught TypeError: Failed to resolve module specifier "@vue/devtools-api". Relative references must start with either "/", "./", or "../". on versions from 4.0.7 to 4.0.15.

Only version 4.0.6 seems to work.

@angelhdzmultimedia
Copy link
Author

angelhdzmultimedia commented May 25, 2022

Update

I assumed it worked on version 4.0.6 because the error didn't happen and the createRouter function was output in the console.log, but the <router-view> is empty and this is printed in the browser's console:
image

@posva
Copy link
Member

posva commented May 25, 2022

Duplicate of #694

@posva posva marked this as a duplicate of #694 May 25, 2022
@posva posva closed this as not planned Won't fix, can't repro, duplicate, stale May 25, 2022
@vuejs vuejs locked and limited conversation to collaborators May 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants