简体   繁体   English

VSCode 和 Typescript:“没有找到……的类型定义”

[英]VSCode and Typescript: “No type definitions found for …”

I added a module that included types to my project but VSCode was unable to locate the types and gave me the error: "No type definitions found for...".我在我的项目中添加了一个包含类型的模块,但 VSCode 无法找到类型并给了我错误:“没有找到类型定义...”。

Try quitting VSCode and opening the project again.尝试退出 VSCode 并再次打开项目。

If that doesn't work see this answer: https://stackoverflow.com/a/45575241/1736174如果这不起作用,请参阅此答案: https://stackoverflow.com/a/45575241/1736174

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM