Repository navigation
(fix) Pin @carbon/react to 1.121.0 to avoid broken 1.122.0 release - #2040
Conversation
@carbon/react 1.122.0 was published without icons/index.js, icons/index.esm.js and icons/index.d.ts (1.121.0 has them), although icons/package.json still points at them. Anything that resolves "@carbon/react/icons" against 1.122.0 fails with "Module not found". Because esm-styleguide and esm-app-shell declared ^1.92.1, installs without a lockfile (e.g. `npx openmrs build` in a distro build) picked up 1.122.0 and failed. The monorepo's yarn.lock pinned 1.92.1, which is why this did not reproduce here. Pin every @carbon/react dependency to 1.121.0 so there is a single version in yarn.lock. Peer dependency ranges are unchanged.
mseaton
left a comment
There was a problem hiding this comment.
LGTM - do we know if this is a known issue in the carbon world? We will likely want to unpin this once a fix is in place?
|
We actually probably should just keep this pinned permanently. I reported it over here. |
Confidence Score: 5/5
[Medium impact] The PR appears safe to merge.
|
|
If you're wondering why CI hasn't run on this commit, there's an ongoing incident with GitHub webhooks and actions. |
|
Agreed on keeping it pinned. As a separate follow-up, we should look at making the CLI’s installed dependency tree reproducible too, since exact direct pins still leave transitive dependencies floating in fresh distro builds. |
|
I'm just going to bypass Github webhooks and push directly to main. |
|
|
Size Change: +319 kB (+5.81%) 🔍 Total Size: 5.81 MB 📦 View Changed
ℹ️ View Unchanged
|
This is something we should definitely do, but it is (as a warning) more complicated then it looks at first. The problem is that even if we were disciplined about always only using exact versions, we depend on libraries whose |



Requirements
Summary
New version of Carbon is broken. See: https://openmrs.slack.com/archives/CHP5QAE5R/p1796228123427129. This PR pins it to the last known good version.
Generated by Claude:
@carbon/react 1.122.0 was published without icons/index.js, icons/index.esm.js and icons/index.d.ts (1.121.0 has them), although icons/package.json still points at them. Anything that resolves "@carbon/react/icons" against 1.122.0 fails with "Module not found".
Because esm-styleguide and esm-app-shell declared ^1.92.1, installs without a lockfile (e.g.
npx openmrs buildin a distro build) picked up 1.122.0 and failed. The monorepo's yarn.lock pinned 1.92.1, which is why this did not reproduce here.Pin every @carbon/react dependency to 1.121.0 so there is a single version in yarn.lock. Peer dependency ranges are unchanged.
Screenshots
Related Issue
Other