visual-studio - typescript : "i 「wdm」: Failed to compile."

标签 visual-studio typescript iis-express

我的 Typescript 构建失败,但我不知道为什么。 「我『wdm』:编译失败。」是错误信息。它带有有趣的角色,很神秘。如何让构建错误正确显示?

我在这个项目中使用 IIS Express、ASP.NET Core 和 Angular。

这里有更详细的日志

Zoolander.UI> info: Microsoft.AspNetCore.SpaServices[0]
Zoolander.UI>       Date: 2018-09-19T00:32:16.011Z
Zoolander.UI> Hash: 8e2f800b0afe50fe39a9
Zoolander.UI> Time: 4989ms
Zoolander.UI> chunk {main} main.js, main.js.map (main) 1.93 kB [initial] [rendered]
Zoolander.UI> chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 682 bytes [initial] [rendered]
Zoolander.UI> chunk {runtime} runtime.js, runtime.js.map (runtime) 5.22 kB [entry] [rendered]
Zoolander.UI> chunk {styles} styles.js, styles.js.map (styles) 201 kB [initial] [rendered]
Zoolander.UI> chunk {vendor} vendor.js, vendor.js.map (vendor) 325 kB [initial] [rendered]
Zoolander.UI> i 「wdm」: Failed to compile.
Zoolander.UI> 
Zoolander.UI> info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Zoolander.UI>       Request finished in 9279.8092ms 404 text/html; charset=utf-8

最佳答案

我有同样的错误。有关更详细的错误消息:

  • 打开命令行
  • 转到您的应用程序目录(例如 ClientApp)
  • 构建 Angular 应用程序:ng build

关于visual-studio - typescript : "i 「wdm」: Failed to compile.",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52396396/

相关文章:

visual-studio-2013 - 如何将IIS Express的端口号配置为8080以外的其他端口。

ASP.NET 在文本框中显示列表框中选定的项目

facebook-graph-api - 如何从 Angular2 服务访问 FB global?

angular - 将数组中的项目从 typescript 中的最后位置移动到第一个位置

angular - 使用提供程序将多个值注入(inject)到我的服务构造函数 - angular2

.net - 在计算模拟器中的 IIS Express 下运行的 Web 角色的 HTTP 500

asp.net-mvc-3 - VS2010 组件的正确安装顺序是什么? (IIS Express、SQL CE、MVC3、SP1 测试版)

c++ - 通过 telnet 通信

c# - 我有一个 C# 解决方案,其中同一个文件属于多个项目。如何?

c - 为什么 %zd printf 格式在 VS2010 中不起作用?