fix: error on new Maps app version install [DHIS2-20425]#3592
Merged
BRaimbault merged 6 commits intomasterfrom Feb 3, 2026
Merged
fix: error on new Maps app version install [DHIS2-20425]#3592BRaimbault merged 6 commits intomasterfrom
BRaimbault merged 6 commits intomasterfrom
Conversation
Contributor
|
🚀 Deployed on https://pr-3592.maps.netlify.dhis2.org |
KaiVandivier
approved these changes
Feb 3, 2026
dhis2-bot
added a commit
that referenced
this pull request
Feb 3, 2026
## [101.5.5](v101.5.4...v101.5.5) (2026-02-03) ### Bug Fixes * error on new Maps app version install [DHIS2-20425] ([#3592](#3592)) ([5272de6](5272de6))
Contributor
|
🎉 This PR is included in version 101.5.5 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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.
Implements DHIS2-20425
Description
Bug
After updating the Maps app, some users encounter a runtime error:
This happens when the app attempts to load a lazily imported JS chunk that no longer exists on the server. The issue is most commonly triggered after installing a new app version without a hard refresh.
The root cause is unstable chunking during the Vite build: large dependencies (notably
@dhis2/maps-gl) are re-chunked and re-hashed between releases. When combined with dynamic imports and browser/app-shell caching, this can leave the client requesting stale chunk filenames.Fix
Force
@dhis2/maps-glinto a dedicated, stable chunk using RollupmanualChunksviaviteConfigExtensions.This stabilizes the chunk graph across builds, significantly reducing the risk of stale dynamic imports after app upgrades. Once a user has successfully loaded a version containing this fix, subsequent updates should no longer trigger this error.
Quality checklist
Add N/A to items that are not applicable.
Testing
Reproduce error:
101.5.4maps-999.99.9-install-test-nofix-rc1.2026-01-30Test fix:
101.5.4999.99.9-install-fix-rc1.2026-01-30(error can still happen)999.99.9-install-test-rc1.2026-01-30(no more error)