我的 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/