- Issue created by @cainaru
- First commit to issue fork.
- π¦πΊAustralia darvanen Sydney, Australia
Thanks for the detailed report @cainaru, I'm working on finding a fix for this now. It was caused by the move to vite from gulp and my less-than-perfect understanding of vite config.
- π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
darvanen β credited larowlan β .
- π¦πΊAustralia darvanen Sydney, Australia
@larowlan came up with the solution for this in Slack:
you want this
theme/dist/collapsiblock.js: { minified: true, attributes: {type: module} }
which causes it to render as<script type="module">
-
darvanen β
committed 42505422 on 4.2.x
Issue #3455500 by darvanen, cainaru, larowlan: Globally-defined L in new...
-
darvanen β
committed 42505422 on 4.2.x
- π¦πΊAustralia darvanen Sydney, Australia
Having trouble with the pipeline for 4.x.
I can cut a release for 4.2.1 in the interim though.
- Status changed to Downport
6 months ago 1:21am 20 June 2024 -
darvanen β
committed 124c1919 on 4.x
Issue #3455500 by darvanen, cainaru, larowlan: Globally-defined L in new...
-
darvanen β
committed 124c1919 on 4.x
- Status changed to Fixed
6 months ago 3:46am 20 June 2024 Automatically closed - issue fixed for 2 weeks with no activity.
- π©π°Denmark ressa Copenhagen
Thanks @cainaru and @darvanen. I got two warnings, after updating contrib modules and Drupal core:
Warning: file_get_contents(modules/contrib/collapsiblock/theme/dist/js/collapsiblock.min.js): Failed to open stream: No such file or directory [...]
Warning: file_get_contents(modules/contrib/collapsiblock/theme/dist/css/collapsiblock.min.css): Failed to open stream: No such file or directory [...]
Everything did work as expected after going through the update, clearing cache, etc., but to understand why the warnings got there in the first place, I searched and found this issue. As I wrote, everything works as expected on https://arst.dk/kort?data=radon where both Collapsiblock and Leaflet are used, so thanks for the report and update quickly thereafter.