出现错误TS18003:在配置文件“ tsconfig.json”中找不到输入

时间:2020-08-04 03:12:29

标签: javascript visual-studio-code tsc

在终端中运行代码时,我不断收到此错误。

错误TS18003:在配置文件“ tsconfig.json”中未找到任何输入。 指定的“包含”路径为 '[“ ./thndr_app/backend_server","./typings/global.d.ts”]'和'exclude' 路径为“ [“ ./node_modules”]'。

npm ERR!代码ELIFECYCLE npm ERR! errno 1 npm错误!这可能是 npm没问题。可能还有其他日志记录输出 以上。

npm ERR!此运行的完整日志可以在以下位置找到:npm ERR!
C:\ Users \ SamyB \ AppData \ Roaming \ npm-cache_logs \ 2020-08-04T02_57_31_227Z-debug.log

我确实尝试过搜索 Stack Overflow GitHub 上的每个线程,并尝试了已发布的所有可能的命令行选项。使用npm install不起作用,我也尝试过删除并重新安装其他文件。有人修复吗?我一直在努力使它工作几个小时。感谢您的帮助,非常感谢。

这是我的 tsconfig.json 文件:

  {
  "compilerOptions": {
           
    "target": "es2017",                      
    "module": "commonjs",                   
    
      "types": ["node"],                          
  
    "strict": true,                          
    "esModuleInterop": true,               
   
    "forceConsistentCasingInFileNames": true  

  },

  "include": [
       "./thndr_app/backend_server",
       "./typings/global.d.ts",

   ],

   "exclude": [
     "./node_modules",
   ],



}

0 个答案:

没有答案