Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/29.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net 更新到Angular 5后,Aspnet Angular SPA模板不工作_Asp.net_Angular_.net Core_Spa Template - Fatal编程技术网

Asp.net 更新到Angular 5后,Aspnet Angular SPA模板不工作

Asp.net 更新到Angular 5后,Aspnet Angular SPA模板不工作,asp.net,angular,.net-core,spa-template,Asp.net,Angular,.net Core,Spa Template,我已经将aspnet JavaScriptServices angular模板更新为angular 5.0.2 一切看起来都很好,但当它发布时,我发现了以下错误 Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware[0] An unhandled exception has occurred: No ResourceLoader implementation has been provided. Can't read the ur

我已经将aspnet JavaScriptServices angular模板更新为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