Bug
react-doctor v0.0.30 fails with No React dependency found in package.json when the project uses pnpm's catalog: protocol for dependency versions.
Reproduction
// package.json
{
"dependencies": {
"react": "catalog:",
"react-dom": "catalog:"
}
}
# pnpm-workspace.yaml
catalog:
react: 19.2.4
react-dom: 19.2.4
$ npx react-doctor@0.0.30 .
react-doctor v0.0.30
Something went wrong. Please check the error below for more details.
No React dependency found in package.json
Expected
react-doctor should recognize "catalog:" as a valid version specifier (resolved by pnpm at install time) and either:
- Parse the actual version from
pnpm-workspace.yaml
- Fall back to the installed version in
node_modules/react/package.json
Context
The catalog: protocol is a pnpm workspace feature for centralizing dependency versions. It's been stable since pnpm v9.5. Our CI (GitHub Actions) runs npx -y react-doctor@latest and it has been failing on every branch since ~April 1, 2026.
Environment
- react-doctor: 0.0.30
- pnpm: 10.x
- Node: 24.x
- React: 19.2.4 (via catalog)
Bug
react-doctorv0.0.30 fails withNo React dependency found in package.jsonwhen the project uses pnpm'scatalog:protocol for dependency versions.Reproduction
Expected
react-doctor should recognize
"catalog:"as a valid version specifier (resolved by pnpm at install time) and either:pnpm-workspace.yamlnode_modules/react/package.jsonContext
The
catalog:protocol is a pnpm workspace feature for centralizing dependency versions. It's been stable since pnpm v9.5. Our CI (GitHub Actions) runsnpx -y react-doctor@latestand it has been failing on every branch since ~April 1, 2026.Environment