Repository navigation
fix(events): pin leaflet.markercluster to 1.x to restore the frontend build - #4114
Merged
Merged
Conversation
… build Dependabot #4100 bumped leaflet.markercluster to 2.0.0, which no longer ships dist/MarkerCluster.css. EventsMap's frontend imports it, so npm run build fails. That breaks the wp_codebox_prepare_steps CI step and release packaging ("Package command completed without required frontend assets").
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Dependabot #4100 (
e7cf3b9b4) bumpedleaflet.markerclusterfrom^1.5.3to^2.0.0. Version 2.0.0 no longer shipsdist/MarkerCluster.css; onlyMarkerCluster.Default.cssis left.inc/Blocks/EventsMap/src/frontend.tsximports both, sonpm run buildfails:Downstream effects since then:
data-machine-eventsCIHomeboy (review test)fails on main and on PRs atwp_codebox_prepare_steps(npm run build, exit 1).Fix
Pin
leaflet.markerclusterback to^1.5.3and refresh the lockfile. v2 is also an ESM rewrite with a different plugin-registration model, so a major upgrade needs its own change.Verification
npm ci && npm run buildinplugins/data-machine-events: compiles with no errors (it failed on main before this change).Also noticed (not fixed here)
The
testscript (wp-scripts test-unit-js) now requires Vitest after the same@wordpress/scriptsbump. Switching it towp-scripts test-unit-jest(or migrating) is a separate change.AI disclosure
Diagnosed and fixed by Extra Chill Bot (Claude) by hand, outside Homeboy. It unblocks the release of #4111 (Dice/Ticketmaster big-city coverage).