Skip to content

Failed to Compile #1642

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

Closed
Phil-jci opened this issue Dec 20, 2021 · 4 comments
Closed

Failed to Compile #1642

Phil-jci opened this issue Dec 20, 2021 · 4 comments

Comments

@Phil-jci
Copy link

Version

6.0.0-beta.21

Browser and OS info

Chrome 96 / Windows 11

Steps to reproduce

Create a new project which includes vue-router with the @vue/cli.

Run the @vue/cli script 'serve' (npm run serve) from within the new project directory.

What is expected?

Project builds and webpage is served at localhost.

What is actually happening?

ERROR Failed to compile with 1 error 15:27:04
error in ./node_modules/@vue/devtools-api/lib/esm/proxy.js

Module parse failed: Unexpected token (3:10)


I'm something of a noob when it comes to Vue and JS in general, but the problem suddenly appeared a few hours ago, which I noticed is when you releases version 6.0.0-beta.21. If I use npm to manually roll back the vue-devtools version to 6.0.0-beta.20.1 the script builds the files without issue.

@randomailer
Copy link

for me the same situation

@leolivier
Copy link

leolivier commented Dec 20, 2021

same issue for me

edit: actually same as #1641

@kyrsquir
Copy link

kyrsquir commented Dec 20, 2021

Adding this to package.json helped me as a temporary solution (installing older version didn't help me as both vue-router and vuex depend on @vue/devtools-api and the error kept coming from them):

"resolutions": {
  "@vue/devtools-api": "6.0.0-beta.20.1"
}

This only works with yarn though

@Akryum
Copy link
Member

Akryum commented Dec 20, 2021

Duplicate of #1641

@Akryum Akryum marked this as a duplicate of #1641 Dec 20, 2021
@Akryum Akryum closed this as completed Dec 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants