小编Mik*_*uge的帖子

jsconfig.json gives ts errors

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
Run Code Online (Sandbox Code Playgroud)

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", …
Run Code Online (Sandbox Code Playgroud)

vue.js visual-studio-code nuxt.js vscode-jsconfig

9
推荐指数
4
解决办法
3649
查看次数