< 172022-03-18⋎19 >

Topic for #farmOS is: farmOS (farmos.org) is a free and open source, web-based farm management system. User guide: farmos.org/guide/ - Forum: farmOS.discourse.groupSet by mstenta on 2021-06-15 at 12:52
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:42paul121[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:43paul121[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:43paul121[m]I feel like I remember we identified this, but I couldn't find any issues...
23:45paul121[m]I found this issue: github.com/farmOS/farmOS-map/pull/121
23:45paul121[m]and referred to these webpack docs: webpack.js.org/guides/public-path/
23:45paul121[m]I modified the `output.publicPath` in farmOS-map `webpack.config.js` to be `/libraries/farmOS-map/` *and this fixed the problem!!*
23:45paul121[m] * I found this issue where we switched to webpack 5: github.com/farmOS/farmOS-map/pull/121
23:45paul121[m]and referred to these webpack docs: webpack.js.org/guides/public-path/
23:45paul121[m]I modified the `output.publicPath` in farmOS-map `webpack.config.js` to be `/libraries/farmOS-map/` _and this fixed the problem!!_
23:45paul121[m]That basically hard-codes the chunks to always load from that path.. but obviously that isn't a solution
23:46paul121[m]any ideas? it seems like the default `publicPath` behavior isn't good enough. I also tried `auto` but it didn't work
23:57symbioquine[m]I think there's an issue about it. Can't remember which queue. I can look when I get back to my computer...

< 172022-03-18⋏19 >