lbialy / play-ng2-webpack2

Play 2.6.0 + Angular with Angular-CLI + SBT - based build
Other
55 stars 20 forks source link

Lazy loading that webpack require 0.chunk.js is invalid url #5

Closed vinhbt closed 7 years ago

vinhbt commented 7 years ago

inline.bundle.js:92:33 require /0.chunk.js but 0.chunk.js locate in sbt in /assets/0.chunk.js ==>

EXCEPTION: Uncaught (in promise): Error: Loading chunk 0 failed. Error: Loading chunk 0 failed. at HTMLScriptElement.onScriptComplete (http://localhost:9000/assets/inline.bundle.js:92:33) [angular] at HTMLScriptElement.wrapFn (http://localhost:9000/assets/polyfills.bundle.js:7053:29) [angular] at Object.onInvokeTask (http://localhost:9000/assets/vendor.bundle.js:28837:37) [angular] at ZoneDelegate.invokeTask (http://localhost:9000/assets/polyfills.bundle.js:6225:36) [angular] at Zone.runTask (http://localhost:9000/assets/polyfills.bundle.js:6029:47) [ => angular] at HTMLScriptElement.ZoneTask.invoke (http://localhost:9000/assets/polyfills.bundle.js:6279:38) []

lbialy commented 7 years ago

Could you provide some more information? In what circumstances did this happen?

lbialy commented 7 years ago

Closing for lack of activity.