Skip to content

[agent] Failed to update typescript #202

Description

@claude

Failed dependency update

Package: typescript
From: 6.0.3 → To: 7.0.2

Error

Bumping typescript to 7.0.2 (the native TypeScript 7 compiler port) breaks typescript-eslint. ESLint fails to even load its config with:

TypeError: Cannot read properties of undefined (reading 'Cjs')
    at @typescript-eslint/typescript-estree/dist/create-program/shared.js:59:14

This surfaced first in Step 1 (update-outdated-deps:fix-pkg-json, which runs eslint --fix on the package.json files) and would also fail Step 2a (Linting). The crash reproduces with the previous @typescript-eslint 8.63.0 as well, confirming the typescript 7 bump is the cause, not the typescript-eslint bump.

TypeScript 7 is the Go-based native compiler and does not yet expose the classic JS compiler API (e.g. ModuleKind.Cjs) that @typescript-eslint/typescript-estree depends on. The latest typescript-eslint (8.64.0) does not support it.

What was tried

  • Installed typescript@7.0.2 and ran ESLint — crashes as above.
  • Confirmed the crash is independent of the @typescript-eslint version bump.
  • No clean migration available (no typescript-eslint release supports the native TS7 API yet), so reverted typescript to 6.0.3 across all workspace package.json files. The remaining dependency updates were applied and validated.

Workflow run

https://github.com/workleap/wl-telemetry/actions/runs/29341481108

Activity

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