You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
chore(deps): ignore leaflet.markercluster semver-major in dependabot until Leaflet 2 migration #4112
The data-machine-eventsHomeboy (review test) job has failed on main and on every PR since the dependabot group bump #4100 (merged 2026-11-29 05:01Z). Before #4100 the test job passed and only lint was red (run 46222736836).
The failure looks like npm ERESOLVE, but those lines are just peer-dependency warnings. npm ci succeeds. The prepare step that actually fails is npm run build (job 141475872437):
ERROR in ./inc/Blocks/EventsMap/src/frontend.tsx 28:0-54
Module not found: Error: Package path ./dist/MarkerCluster.css is exported from package .../node_modules/leaflet.markercluster, but no valid target file was found
EventsMap (webpack 5.113.0) compiled with 1 error
Error: wp_codebox_prepare_steps command failed (npm, exit 1)
Root cause
#4100 bumped leaflet.markercluster from ^1.5.3 to ^2.0.0. 2.0.0 is the Leaflet 2 ESM rewrite:
dist/MarkerCluster.css is gone; only dist/MarkerCluster.Default.css ships.
src/index.js only does export * from './MarkerClusterGroup.js' and no longer patches the global L. So L.markerClusterGroup(...) (frontend.tsx:536) would be undefined at runtime even if the CSS import were fixed.
We still pin leaflet to 1.9.4, and @types/leaflet.markercluster is ^1.5.6.
The production Events Map would break if a build made from this lockfile ever shipped.
Fix
plugins/data-machine-events/package.json: set leaflet.markercluster back to ^1.5.3 and regenerate package-lock.json (npm install in that dir), so the lock resolves 1.5.x.
.github/dependabot.yml: in the npm entry, add an ignore for leaflet.markerclusterversion-update:semver-major. The 2.x migration has to happen together with a Leaflet 2 upgrade.
Verify: cd plugins/data-machine-events && npm ci && npm run build compiles all blocks (Calendar, EventDetails, EventsMap) with no errors.
Moving to Leaflet 2 + markercluster 2 is out of scope here.
The build regression is fixed by #4114, which pins leaflet.markercluster to ^1.5.3. Released as data-machine-events v0.94.2, and the events Homeboy (review test) job is green again on main (run 46314585545).
Still open: #4114 didn't add the .github/dependabot.yml ignore for leaflet.markercluster semver-major. Without it, the weekly npm group bump will propose 2.x again and break the build the same way. I've retitled this issue to track that guard.
changed the title [-]fix(events): revert leaflet.markercluster 2.0 bump that breaks EventsMap build and CI tests[/-][+]chore(deps): ignore leaflet.markercluster semver-major in dependabot until Leaflet 2 migration[/+]on Nov 29, 2026
Activity
chubes4 commentedon Nov 29, 2026
The build regression is fixed by #4114, which pins
leaflet.markerclusterto ^1.5.3. Released as data-machine-events v0.94.2, and the eventsHomeboy (review test)job is green again on main (run 46314585545).Still open: #4114 didn't add the
.github/dependabot.ymlignore forleaflet.markerclustersemver-major. Without it, the weekly npm group bump will propose 2.x again and break the build the same way. I've retitled this issue to track that guard.[-]fix(events): revert leaflet.markercluster 2.0 bump that breaks EventsMap build and CI tests[/-][+]chore(deps): ignore leaflet.markercluster semver-major in dependabot until Leaflet 2 migration[/+]