【问题标题】:typeRoots not found in tsconfig.json in angular 10在角度 10 的 tsconfig.json 中找不到 typeRoots
【发布时间】:2020-10-29 07:32:49
【问题描述】:

我想在角度 10 中更新 tsconfig.json 中的 typeRoots 但 typeRoots 没有显示在我的 tsconfig.json 文件中 如何解决这个问题

问候 白菊

【问题讨论】:

    标签: angular tsconfig


    【解决方案1】:

    您可以在 tsconfig.json 中将typeRoots 添加到compilerOptions,参见docs

    {
      "compilerOptions": {
        "typeRoots": ["./typings", "./vendor/types"]
      }
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-12-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-10-24
      • 2023-03-28
      • 2019-03-06
      相关资源
      最近更新 更多