··
369
·
2024-06-17 19:42

VSCode error: To enable project-wide JavaScript/TypeScript language features, exclude large folders...

I'm using VSCode to write my Nuxt app. My VSCode was fine before, but it suddenly starts to continuously show me the error :Restarting the VSCode did not make any difference. And all my installed plugins failed, reinstalling the plugin also didn't work. Judging by the hint of VSCode, I realized that I had changed my public directory, which caused this error.


Therefore, I tried to add public directory to my exclude list in tsconfig.json :

{
  // https://nuxt.com/docs/guide/concepts/typescript
  "extends": "./.nuxt/tsconfig.json",
  "exclude": ["./public"]
}

Then everything is back to normal!

Add a comment
Comments

There is no comment, let's add the first one.

弦圈热门内容

Get connected with us on social networks! Twitter

©2024 Guangzhou Sinephony Technology Co., Ltd All Rights Reserved