Skip to content

[agent] Failed to update typescript #708

Description

@claude

Failed dependency update

Package: typescript
From: 6.0.3 → To: 7.0.2

Error

The update was reverted during Step 1 of the dependency update workflow. Bumping typescript to 7.0.2 breaks ESLint, which fails before any linting can run:

Oops! Something went wrong! :(

ESLint: 9.39.2

TypeError: Cannot read properties of undefined (reading 'Cjs')
    at node_modules/.pnpm/@typescript-eslint+typescript-estree@8.54.0_supports-color@10.2.2_typescript@7.0.2/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js:59:14
    at node_modules/.pnpm/@typescript-eslint+typescript-estree@8.54.0/.../create-program/getWatchProgramsForProjects.js:45:18
    at node_modules/.pnpm/@typescript-eslint+typescript-estree@8.54.0/.../clear-caches.js:5:39

This surfaced in update-outdated-deps:fix-pkg-json (which runs eslint --fix over the package.json files) and would equally have failed Step 2a (pnpm lint).

Root cause

TypeScript 7 is the native port, and its public API shape differs from TypeScript 6 (ts.ModuleKind.Cjs is no longer where typescript-estree expects it). No released typescript-eslint supports it yet — the current latest (8.70.0) still declares:

"peerDependencies": {
  "typescript": ">=4.8.4 <6.1.0"
}

Note that eslint, @eslint/js and typescript-eslint are deliberately excluded from update-outdated-deps, so bumping typescript-eslint was not an option here either.

What was tried

  • Reproduced the failure with a clean pnpm install on typescript@7.0.2, ruling out a stale node_modules state.
  • Checked whether a newer typescript-eslint supports TypeScript 7 — it does not (see the peer range above).
  • Reverted typescript to 6.0.3 across all 35 workspace package.json files, reinstalled, and continued with the remaining dependency updates.

Suggested follow-up

Hold typescript at 6.x until typescript-eslint ships TypeScript 7 support. Consider adding !typescript to the update-outdated-deps:update-versions and list-outdated-deps exclusion lists in the root package.json so subsequent automated runs do not keep re-attempting this bump.

Workflow run

https://github.com/workleap/wl-squide/actions/runs/34237414633

Activity

  1. claude commented on Sep 15, 2026

    @claude
    ContributorAuthor

    Recurred on the 2026-09-15 automated dependency update run: pnpm update-outdated-deps bumped typescript to 7.0.2 again and update-outdated-deps:fix-pkg-json failed with the same TypeError: Cannot read properties of undefined (reading 'Cjs') from @typescript-eslint/typescript-estree@8.54.0.

    typescript was reverted to 6.0.3 across the workspace again and the rest of the updates proceeded. The suggested follow-up above (adding !typescript to the update-outdated-deps:update-versions and list-outdated-deps exclusion lists) still stands — without it every run will keep re-attempting and reverting this bump.

    Workflow run: https://github.com/workleap/wl-squide/actions/runs/34980667326

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions