我已将aspnet JavaScriptServices角度模板更新为Angular 5.0.2
一切看起来都很好,但是当它发布时我得到了以下错误
Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware[0]
An unhandled exception has occurred: No ResourceLoader implementation has been provided. Can't read the url "app.component.html"
Error: No ResourceLoader implementation has been provided. Can't read the url "app.component.html" at Object.get
如果我关闭服务器端预渲染,删除asp-prerender-module="ClientApp/dist/main-server"
,它将正常工作,没有任何问题。
有关于此的任何想法吗?
注意:我已完成更改以使用AngularCompilerPlugin
代替AotPlugin