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
Pinned react version breaks projects on newer React 19 patch versions #454
jsx-email should work with any React 19.2 patch version. If a project already has react@19.2.6 installed, jsx-email should reuse it.
Actual Behavior / Situation
The pnpm-workspace.yaml catalog pins react and react-dom to 19.2.5. Because catalog: resolves to an exact version, package manager installs a second copy of React (19.2.5) alongside the project's existing 19.2.6. This causes duplicate React instances in the tree and breaks the build.
Modification Proposal
Change the catalog entry from an exact pin to a caret range:
catalog:
react: ^19.2.0react-dom: ^19.2.0
This lets package managers reuse whatever React 19 version the consuming project already has installed instead of installing a duplicate.
Thanks for the issue. You can work around this right now with overrides with your preferred package manager.
The ideal change here is that devDeps are added which use catalog (because you want to ensure the entire repo is using the same exact version for development consistency) but having peerDeps which contain the caret range.
It updates pnpm-workspace.yaml catalog entries for react and react-dom from 19.2.5 to ^19.2.0 so projects on newer React 19 patch releases can reuse their installed version instead of getting a duplicate React copy.
Validation note: :typecheck and :test currently fail on this branch and on main with pre-existing module-resolution/typecheck issues unrelated to this change.
Activity
shellscape commentedon May 28, 2026
Thanks for the issue. You can work around this right now with overrides with your preferred package manager.
The ideal change here is that devDeps are added which use catalog (because you want to ensure the entire repo is using the same exact version for development consistency) but having peerDeps which contain the caret range.
shellscape commentedon May 28, 2026
@CharlieHelps prepare a fix PR for this issue
charliecreates commentedon May 28, 2026
Prepared a fix PR: #455
It updates
pnpm-workspace.yamlcatalog entries forreactandreact-domfrom19.2.5to^19.2.0so projects on newer React 19 patch releases can reuse their installed version instead of getting a duplicate React copy.Validation note:
:typecheckand:testcurrently fail on this branch and onmainwith pre-existing module-resolution/typecheck issues unrelated to this change.margad commentedon May 28, 2026
That was fast thanks @shellscape