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

Beaver Bridge - Aug 30 '23 - - Dev Community

.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
. . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player