问题描述
我有一个保存时编译"的网络项目,几乎可以完美运行一年.然后我切换到使用 npm 和 node_modules/@types
而不是通过 NuGet 的 Typescript 定义包,因此,现在我使用 tsconfig.json 来控制项目"中包含的 typescript现在,每当我尝试保存文件时,
I have a web project that had "compile on save" working perfect for almost year. I then switched over to using npm and node_modules/@types
rather than Typescript Definition Packages via NuGet, and so, now i'm using the tsconfig.json to control what typescript is included in the "project" Now, whenever I attempt to save a file,
项目包含错误.已跳过输出生成.
显示在底部的蓝色状态栏中,但它实际上并未显示错误列表中的任何错误...无论如何要弄清楚错误究竟是什么?
shows up in the blue status bar at the bottom, but it doesn't actually show any of the errors in the error list... Is there anyway to figure out what the errors actually are?
推荐答案
我相信这是因为我的 Visual Studio Typescript 版本与我的 npm 版本不匹配.我最终通过对每个失败的文件运行 TSC 来修复所有错误,直到所有错误都得到解决.
I believe this was due to my Visual Studio Typescript version not matching with my npm version. I eventually fixed all of my errors by running TSC on each file that was failing, until all errors had been resolved.
这篇关于Visual Studio TypeScript 编译保存失败,“项目包含错误"但没有显示错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!