使用角2與延遲裝入模塊,可以接收(例如)從服務器角2.錯誤:裝載塊失敗
bootstrap 0b40fee…:101 GET http://localhost:8082/2.chunk.js
Error: Loading chunk 2 failed.
at HTMLScriptElement.onScriptComplete (bootstrap 0b40fee…:91)
at HTMLScriptElement.wrapFn (zone.js:1032)
at ZoneDelegate.invokeTask (zone.js:414)
at Object.onInvokeTask (core.es5.js:4119)
at ZoneDelegate.invokeTask (zone.js:413)
at Zone.runTask (zone.js:181)
at HTMLScriptElement.ZoneTask.invoke (zone.js:476)
如何處理該錯誤401 HTTP代碼?
你如何爲你的應用程序?用ng服務還是stg其他?這種問題可能與錯誤的路徑有關,你能否提供更多的細節? – ulubeyn
路徑很好。問題是如何處理加載塊(webpack)錯誤。原因可以是任何HTTP錯誤代碼 – smie