angular - 在角度 10 的 tsconfig.json 中找不到 typeRoots
问题描述
我想以角度 10 更新 tsconfig.json 中的 typeRoots 但 typeRoots 未在我的 tsconfig.json 文件中显示如何解决这个问题
问候白菊
解决方案
您可以在 tsconfig.json 中添加typeRoots
,compilerOptions
请参阅文档:
{
"compilerOptions": {
"typeRoots": ["./typings", "./vendor/types"]
}
}
推荐阅读
- java - Android Stuido:PC 关闭后库的内存不足(Java 堆空间)错误
- python - 比较 pandas 和 python 中的整数和浮点数是不一致的。为什么?
- javascript - 将属性附加到每个 JSON 对象
- swift - 如何在 SwiftUI 中滚动之前使内联导航栏透明
- node.js - 将包含可变数据的文件上传到 Google Cloud Storage
- javascript - 将图像拟合到 Material-ui 网格中
- python - 为什么我的 pygame 程序运行时间越长越慢?
- java - 运行具有接口作为参数 1 的类时出现 NoSuchBeanDefinitionException
- reactjs - 前端尝试从互联网连接到 Docker 上的后端
- asp.net-core - 访问 Blazor 的文档 XML。API 文档的共享模型