Skip to content

fix(frontend): resolve npm ci ERESOLVE by downgrading TypeScript to 4.9.5 - #57

Open
github-actions[bot] wants to merge 1 commit into
chore/a2a-maintainer-onboardfrom
claude-auto-fix-ci-chore/a2a-maintainer-onboard-30070948682
Open

fix(frontend): resolve npm ci ERESOLVE by downgrading TypeScript to 4.9.5#57
github-actions[bot] wants to merge 1 commit into
chore/a2a-maintainer-onboardfrom
claude-auto-fix-ci-chore/a2a-maintainer-onboard-30070948682

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Root cause

CI was failing in the lint-and-test job at the Install Node.js dependencies step with:

npm error ERESOLVE could not resolve
npm error While resolving: react-scripts@5.0.1
npm error peerOptional typescript@"^3.2.1 || ^4" from react-scripts@5.0.1
npm error Found: typescript@5.8.3

react-scripts@5.0.1 declares typescript@^3.2.1 || ^4 as a peer-optional dependency. The lock file had typescript@5.8.3, which is outside that range. npm 10's strict peer-dependency resolver rejects this with ERESOLVE, causing npm ci to fail.

Two secondary issues were also found: the CI workflow calls npm run lint and npm run type-check, but neither script existed in package.json.

Fix

  • frontend/package.json: Downgrade TypeScript from ^5.2.2^4.9.5 (within react-scripts' supported range). Add the missing lint (eslint src --ext .ts,.tsx) and type-check (tsc --noEmit) scripts.
  • frontend/package-lock.json: Regenerated to lock TypeScript at 4.9.5.

The frontend source code uses no TypeScript 5-specific syntax and is fully compatible with TypeScript 4.9.5 (verified by auditing all 21 .ts/.tsx files).

Fixes the failing CI on PR #55.

🤖 Generated with Claude Code

react-scripts@5.0.1 declares peerOptional typescript@"^3.2.1 || ^4". With
typescript@5.8.3 in the lock file, npm ci failed with ERESOLVE. Downgrading
to typescript@^4.9.5 (within the supported range) fixes the install.

Also adds the lint (eslint src) and type-check (tsc --noEmit) scripts
that the CI workflow invokes but were missing from package.json.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions
github-actions Bot requested a review from izzywdev as a code owner July 24, 2026 06:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants