Skip to content

fix(ci): resolve npm/TypeScript conflict for UI build#252

Open
vporoshok wants to merge 1 commit intoppfrom
fix/ci-npm-legacy-peer-deps
Open

fix(ci): resolve npm/TypeScript conflict for UI build#252
vporoshok wants to merge 1 commit intoppfrom
fix/ci-npm-legacy-peer-deps

Conversation

@vporoshok
Copy link
Collaborator

Problem

CI job build_dev / build-and-push was failing after dependency updates (e.g. job 65873337697).

Root cause:

  • react-i18next 15 requires TypeScript 5+ for correct useTranslation(namespace) typing; on TS 4.9 the build failed with TS2554: Expected 0 arguments, but got 1 in UI components.
  • react-scripts@5.0.1 declares peerOptionalDependencies: typescript ^3 || ^4, so npm install with TypeScript 5 in a clean environment failed with ERESOLVE.

Solution

  • Bump TypeScript in web/ui from ^4.9.5 to ^5.0.0.
  • Use npm install --legacy-peer-deps in Makefile (ui-install, ui-bump-version) and in werf.yaml so install succeeds despite the peer conflict.

Verification

  • make build passes in devcontainer (ARM).
  • UI build passes locally with npm install --legacy-peer-deps && npm run build in web/ui.

Made with Cursor

- Bump TypeScript to ^5.0.0 in web/ui (required by react-i18next 15 types)
- Use npm install --legacy-peer-deps in Makefile and werf.yaml so
  install succeeds despite react-scripts@5 peerOptional typescript ^3||^4

Fixes CI build_dev / build-and-push failing with TS2554 and ERESOLVE.

Made-with: Cursor
@vporoshok vporoshok self-assigned this Mar 6, 2026
@vporoshok vporoshok requested a review from u-veles-a March 6, 2026 13:15
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.

1 participant