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!
评论区
暂无评论,来发布第一条评论吧!