DEV Community

Beaver Bridge
Beaver Bridge

Posted on

VSCode에서 prettier가 Error handling text editor change, Invalid host defined options이 뜨면서 작동이 중지됐을 때

.vscode/setting.jsonprettierPathindex.cjs 를 넣거나 빼보면 된다.

{
  "[javascript]": {
    "editor.formatOnSave": true,
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[json]": {
    "editor.formatOnSave": true,
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[typescript]": {
    "editor.formatOnSave": true,
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[svelte]": {
    "editor.formatOnSave": true,
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "prettier.prettierPath": "./node_modules/prettier/index.cjs",
  "prettier.configPath": "./.prettierrc"
}
Enter fullscreen mode Exit fullscreen mode

Top comments (0)