vuejs / component-compiler-utils

Lower level utilities for compiling Vue single file components
319 stars 75 forks source link

Problem with `prettier@3` #133

Closed ThornWalli closed 11 months ago

ThornWalli commented 11 months ago

Hello,

just trying to get a nuxt@2 running with a current eslint configuration.

I get an error:

image

I could trace it back to the installation of prettier@3. There seems to be a conflict with this dependency because it requires prettier@2.

I tried to solve it with an override in the package.json. Unfortunately without success.

{
  "overrides": {
    "@vue/component-compiler-utils": {
      "prettier": "2.8.8"
    }
  }
}
eltongarbin commented 11 months ago

I solved updating to false the prettify option from vue-loader:

[...] if you encounter any obscure bug of prettier [...] you can disable this option to circumvent it. https://vue-loader.vuejs.org/options.html#prettify

ThornWalli commented 11 months ago

Very good, thank you!