Loading chunk failed in history mode

  • I have a couple routes setup and if I build and quasar serve ./dist with history mode on I see : “Error: Loading chunk 2 failed” in the console. I can see it is looking in the current path rather than back at /js. The problem does not occur when running quasar dev. Is there something else that I need to set when using history mode? Or is it an issue with quasar serve? Thanks!

  • Adding <base href="/"> takes care of it. Is that the recommended way?

  • Scratch that, maybe a fluke with quasar serve, it works with http-server and the base killed cordova.

Log in to reply