【发布时间】:2020-10-29 07:32:49
【问题描述】:
我想在角度 10 中更新 tsconfig.json 中的 typeRoots 但 typeRoots 没有显示在我的 tsconfig.json 文件中 如何解决这个问题
问候 白菊
【问题讨论】:
我想在角度 10 中更新 tsconfig.json 中的 typeRoots 但 typeRoots 没有显示在我的 tsconfig.json 文件中 如何解决这个问题
问候 白菊
【问题讨论】:
您可以在 tsconfig.json 中将typeRoots 添加到compilerOptions,参见docs:
{
"compilerOptions": {
"typeRoots": ["./typings", "./vendor/types"]
}
}
【讨论】: