| 15:14 | mstenta[m] | symbioquine: hey @pcambra and I discovered a bug today... i'm not sure if it's a bug with farmOS-map.js or something else, but it is related to the way the `farmOS-map-chunk-*` files are being loaded |
| 15:15 | mstenta[m] | Wondering if you're around and could help us understand that a bit |
| 15:15 | symbioquine[m] | Sure :) |
| 15:15 | mstenta[m] | We are in Zoom - would you like to join for a second? No pressure if you're busy |
| 15:17 | symbioquine[m] | I can join |
| 21:19 | symbioquine[m] | fyi mstenta & @pcambra: I opened an issue for that farmOS-map + off-canvas dialog problem: www.drupal.org/project/farm/issues/32439 |
| 21:20 | symbioquine[m] | I think i have a vague idea what's going on and will hopefully get a chance to summarize it on that issue soon... |
| 21:22 | mstenta[m] | symbioquine oh I'm very curious! Does it seem to be a Drupal/gin issue? Or still hard to say? |
| 21:22 | mstenta[m] | Thanks for investigating and opening an issue! |
| 21:24 | symbioquine[m] | Something about how `farmOS-map.js` itself is getting loaded as part of the off-canvas dialog defeats Webpack's mechanism for constructing the relative path. |
| 21:25 | symbioquine[m] | It's unclear if it's a bug with the off-canvas dialog per-se. |
| 21:25 | symbioquine[m] | Possibly more like an incompatibility... |
| 21:27 | mstenta[m] | Oh interesting |
| 21:27 | symbioquine[m] | In the off-canvas dialog the stacktraces for the requests to the chunks show "injectedScript"; |
| 21:27 | * | uploaded an image: (405KiB) < libera.ems.host/_matrix/media/r0/downloa > |
| 21:28 | mstenta[m] | Well fwiw it would be cool to start using off canvas in farmOS core, but we don't have any immediate plans yet ... |
| 21:28 | symbioquine[m] | Whereas in a dedicated tab, the requests show "farmOS-map.js"; |
| 21:28 | * | uploaded an image: (342KiB) < libera.ems.host/_matrix/media/r0/downloa > |
| 21:28 | mstenta[m] | Hmm interesting |
| 21:30 | mstenta[m] | Maybe it's a core off canvas issue? |
| 21:30 | mstenta[m] | (Drupal core) |
| 21:30 | symbioquine[m] | I have a work-around;... (full message at libera.ems.host/_matrix/media/r0/downloa) |
| 21:30 | symbioquine[m] | But it's not super elegant :( |
| 21:32 | mstenta[m] | So what's the deal with "injectedScript"? |
| 21:32 | mstenta[m] | Is drupal doing something odd? |
| 21:33 | mstenta[m] | 🤔 |
| 21:34 | symbioquine[m] | mstenta[m]: It doesn't look especially odd. It's just doing an [AJAX append command](www.drupal.org/docs/drupal-apis/ajax-api) to add the script tag for `farmOS-map.js` to the body... |
| 21:35 | symbioquine[m] | Which yields an almost identical script tag to the non-off-canvas-dialog case. |
| 21:35 | mstenta[m] | Hmm ok |
| 21:36 | symbioquine[m] | The main differences in the script tag attributes are;... (full message at libera.ems.host/_matrix/media/r0/downloa) |
| 21:37 | symbioquine[m] | It could have something to do with the `async` attribute, but I haven't come up with a good way to test that easily yet... |
| 21:39 | mstenta[m] | I wonder if there's any open issues for similar things in the webpack community |
| 21:40 | mstenta[m] | s/I wonder if there's any open issues for similar things in the webpack community/I wonder if there are any open issues for similar things in the webpack community/ |
| 21:43 | symbioquine[m] | I did a little searching - by no means exhaustive. There's lots of similar kinds of issues, but none that looked like the same thing exactly... |
| 21:45 | mstenta[m] | Ah hmm |
| 21:46 | paul121[m] | <mstenta[m]> "Well fwiw it would be cool to..." <- yes plz :-) |
| 21:46 | paul121[m] | a goal for christmas |
| 22:02 | symbioquine[m] | I believe it is hitting this case in the dynamic path resolution and pulling a path from another script tag on the page; github.com/webpack/webpack/blob/8a6d156c |