Skip to content

Upgraded project (Vue2->Vue3) fails to build for production #13018

Closed Answered by skirtles-code
DSC-CSTS asked this question in Help/Questions
Discussion options

You must be logged in to vote

It looks like it's failing because you're using a version of ESLint that's too new. I believe the extensions option was removed in ESLint 9, but Vue CLI doesn't seem to have been updated to account for that.

It will build if you skip ESLint, e.g. by changing the build in scripts to:

"build": "vue-cli-service build --skip-plugins @vue/cli-plugin-eslint",

To get ESLint working, I suggest creating a new project using Vue CLI and copying the dependency versions from that.

Longer term you'll likely want to make the switch to Vite.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@DSC-CSTS
Comment options

Answer selected by DSC-CSTS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants