[05:00:10] | * UgeshB[m] has quit (Quit: You have been kicked for being idle) |
[05:00:10] | * botlfarm[m] has quit (Quit: You have been kicked for being idle) |
[18:30:17] | * farmBOT has joined #farmos |
[19:42:35] | <paul121[m]> | hey symbioquine mstenta did we identify a bug where farmOS-map chunk loading doesn't work when a map is rendered in an AJAX response? |
[19:43:14] | <paul121[m]> | I'm building a form that uploads & imports a geojson file. Trying to render a map once the file is uploaded but I get 404 errors because the chunks are being loaded from the wrong place |
[19:43:30] | <paul121[m]> | I feel like I remember we identified this, but I couldn't find any issues... |
[19:45:04] | <paul121[m]> | I found this issue: https://github.com/farmOS/farmOS-map/pull/121 |
[19:45:04] | <paul121[m]> | and referred to these webpack docs: https://webpack.js.org/guides/public-path/ |
[19:45:04] | <paul121[m]> | I modified the `output.publicPath` in farmOS-map `webpack.config.js` to be `/libraries/farmOS-map/` *and this fixed the problem!!* |
[19:45:22] | <paul121[m]> | * I found this issue where we switched to webpack 5: https://github.com/farmOS/farmOS-map/pull/121 |
[19:45:23] | <paul121[m]> | and referred to these webpack docs: https://webpack.js.org/guides/public-path/ |
[19:45:23] | <paul121[m]> | I modified the `output.publicPath` in farmOS-map `webpack.config.js` to be `/libraries/farmOS-map/` _and this fixed the problem!!_ |
[19:45:51] | <paul121[m]> | That basically hard-codes the chunks to always load from that path.. but obviously that isn't a solution |
[19:46:54] | <paul121[m]> | any ideas? it seems like the default `publicPath` behavior isn't good enough. I also tried `auto` but it didn't work |
[19:57:08] | <symbioquine[m]> | I think there's an issue about it. Can't remember which queue. I can look when I get back to my computer... |