【问题标题】:VS Code is ignoring my tsconfig.jsonVS Code 忽略了我的 tsconfig.json
【发布时间】:2016-11-17 23:39:09
【问题描述】:

我在 settings.json 中添加了一个 TypeScript 设置:

{"typescript.tsdk": "node_modules/typescript/lib"}

但出于某种原因,VS Code 现在(我认为)忽略了我项目中的 tsconfig.json 文件。例如,它告诉我设置“experimentalDecorators”,但我在我的 tsconfig 中设置了这个,并且它不支持我添加到 tsconfig 中的其他 TypeScript 定义。

【问题讨论】:

    标签: typescript visual-studio-code


    【解决方案1】:

    修复

    • 确保您只有一个 tsconfig.json
    • 重启 VSCode。

    【讨论】:

      猜你喜欢
      • 2017-04-18
      • 2016-06-02
      • 1970-01-01
      • 2017-06-23
      • 2018-12-23
      • 2020-04-01
      • 2017-07-20
      • 2020-06-27
      • 2019-03-27
      相关资源
      最近更新 更多