Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Dec 2, 2025

This PR contains the following updates:

Package Change Age Confidence
react-leaflet (source) ^4.2.1 -> ^5.0.0 age confidence

Release Notes

PaulLeCam/react-leaflet (react-leaflet)

v5.0.0

Compare Source

Breaking changes
  • React v19 is now required as peer dependency.
  • Removed LeafletProvider component from the core package.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

"react-error-boundary": "^6.0.0",
"react-i18next": "^16.2.3",
"react-leaflet": "^4.2.1",
"react-leaflet": "^5.0.0",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Updating react-leaflet to ^5.0.0 without upgrading React to v19 creates a peer dependency conflict.
Severity: CRITICAL | Confidence: High

🔍 Detailed Analysis

The react-leaflet package was updated to ^5.0.0, which requires React v19 as a peer dependency. However, the project's package.json still specifies "react": "^18.2.0". This version mismatch will lead to module resolution failures, hook incompatibility errors, and runtime crashes when react-leaflet v5 components and hooks (like useMap) attempt to interact with React v18's incompatible internal APIs.

💡 Suggested Fix

Upgrade React to v19.0.0 or higher to satisfy react-leaflet v5's peer dependency requirements, or revert react-leaflet to a v4.x.x version compatible with React v18.

🤖 Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: smo-frontend/package.json#L38

Potential issue: The `react-leaflet` package was updated to `^5.0.0`, which requires
React v19 as a peer dependency. However, the project's `package.json` still specifies
`"react": "^18.2.0"`. This version mismatch will lead to module resolution failures,
hook incompatibility errors, and runtime crashes when `react-leaflet v5` components and
hooks (like `useMap`) attempt to interact with React v18's incompatible internal APIs.

Did we get this right? 👍 / 👎 to inform future reviews.
Reference ID: 4768886

@renovate renovate bot force-pushed the renovate/react-leaflet-5.x branch from 8e8fb52 to 9f92703 Compare December 3, 2025 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants