| 09:00 | * | UgeshB[m] has quit (Quit: You have been kicked for being idle) |
| 09:00 | * | botlfarm[m] has quit (Quit: You have been kicked for being idle) |
| 22:30 | * | farmBOT has joined |
| 23:42 | 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? |
| 23:43 | 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 |
| 23:43 | paul121[m] | I feel like I remember we identified this, but I couldn't find any issues... |
| 23:45 | paul121[m] | I found this issue: github.com/farmOS/farmOS-map/pull/121 |
| 23:45 | paul121[m] | and referred to these webpack docs: webpack.js.org/guides/public-path/ |
| 23:45 | paul121[m] | I modified the `output.publicPath` in farmOS-map `webpack.config.js` to be `/libraries/farmOS-map/` *and this fixed the problem!!* |
| 23:45 | paul121[m] | * I found this issue where we switched to webpack 5: github.com/farmOS/farmOS-map/pull/121 |
| 23:45 | paul121[m] | and referred to these webpack docs: webpack.js.org/guides/public-path/ |
| 23:45 | paul121[m] | I modified the `output.publicPath` in farmOS-map `webpack.config.js` to be `/libraries/farmOS-map/` _and this fixed the problem!!_ |
| 23:45 | paul121[m] | That basically hard-codes the chunks to always load from that path.. but obviously that isn't a solution |
| 23:46 | paul121[m] | any ideas? it seems like the default `publicPath` behavior isn't good enough. I also tried `auto` but it didn't work |
| 23:57 | 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... |