DEV Community

Pacharapol Withayasakpunt
Pacharapol Withayasakpunt

Posted on

vscode-eslint *often* `Extension 'eslint' cannot format xxx`, with no debug output

It occurs very often, and I usually have no idea why it occurs, and why it is sometimes automatically solved. (Bugged me for months, maybe more than one year now. I usually used to use Yarn, BTW)

Current project is Nuxt / ESLint / Prettier / TypeScript / PNPM, and I rely on local .vscode/settings.json.

{
  "editor.formatOnSave": true,
  "editor.defaultFormatter": "esbenp.prettier-vscode",
  "[typescript]": {
    "editor.defaultFormatter": "dbaeumer.vscode-eslint"
  },
  "[javascript]": {
    "editor.defaultFormatter": "dbaeumer.vscode-eslint"
  }
}
Enter fullscreen mode Exit fullscreen mode

Output console.

[Info  - 4:05:50 PM] ESLint server is starting
[Info  - 4:05:51 PM] ESLint server running in node v12.14.1
[Info  - 4:05:51 PM] ESLint server is running.
[Info  - 4:05:53 PM] ESLint library loaded from: /home/patarapolw/projects/polv/packages/web/node_modules/.pnpm/eslint@7.11.0/node_modules/eslint/lib/api.js
Enter fullscreen mode Exit fullscreen mode

Top comments (0)