jsconfig.jsongivestserrors

I am having jsconfig.json in my root directory using Nuxt.js project.
And I am having an error:

File '/home/mike/Documents/nuxt/node_modules/dotenv/types' not found.
  The file is in the program because:
    Root file specified for compilation

Actually 5 errors in a first line of jsconfig.json:

I don't even use typescript and I didn't set any typescript options while creating Nuxt.js project

jsconfig.json content:

{
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "~/*": ["./*"],
      "@/*": ["./*"],
      "~~/*": ["./*"],
      "@@/*": ["./*"]
    }
  },
  "exclude": ["node_modules", ".nuxt", "dist"]
}

I don't understand where they come from.
How do I get rid of this errors?
There's no option quick fix so I can't ignore errors for entire file

回答

在尝试了几种解决方案后,我刚刚添加"exclude": ["node_modules"]并重新启动了 VScode。错误消失了。


以上是jsconfig.jsongivestserrors的全部内容。
THE END
分享
二维码
< <上一篇
下一篇>>