@mercurjs/core declares Medusa as a peer dependency, so bumping Mercur alone keeps your project on the Medusa version it already pins.
Supported versions
The backend accepts both 2.22 and 2.23, so you can upgrade Mercur first and Medusa later. The panels are built on Medusa UI 4.3, which requires React 19.
What changed in Medusa 2.23
- React 19. Medusa UI 4.3 and
@medusajs/dashboardrequire React 19. - Express 5. Medusa’s HTTP layer moved to Express 5. Custom API routes and middlewares that rely on Express 4 behaviour, such as assigning to
req.query, need a review. - Tailwind CSS 4. Medusa UI is styled for Tailwind 4. The Mercur panels ship their compiled CSS, so host apps that import
@mercurjs/admin/index.cssor@mercurjs/vendor/index.cssneed no Tailwind changes.
Upgrade steps
1
Bump Mercur and Medusa together
In every Keep every
package.json of the project, including the root overrides and resolutions, move all @mercurjs/* packages to the new release and every @medusajs/* package to the same Medusa version:@medusajs/* package on exactly the same version.2
Move the admin and vendor apps to React 19
useRef() now requires an initial value.3
Reinstall from scratch
Delete
node_modules and the lockfile before installing. A partial install can keep a second copy of @medusajs/types built against Express 4, which surfaces as query or link resolving to unknown in TypeScript.4
Migrate and rebuild