typescript-eslint / typescript-eslint/ts-api-utils

🐛 Bug: Typescript 7 support

Open
#1,051 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type: bug
Dominant language
TypeScript
Stars
122
Forks
17
PR merge metrics
No merged PRs in 30d

Description

Bug Report Checklist
  • I have tried restarting my IDE and the issue persists.
  • I have pulled the latest main branch of the repository.
  • I have searched for related issues and found none that matched my issue.
Expected

Not this error

Actual

Upgraded to Typescript 7 and hitting

TypeError: Cannot read properties of undefined (reading 'Intrinsic')
    at /home/runner/work/freshet/freshet/frontend/node_modules/.pnpm/ts-api-utils@2.5.0_typescript@7.0.2/node_modules/ts-api-utils/lib/index.cjs:787:57
    at eval_evalModule (/home/runner/work/freshet/freshet/frontend/node_modules/.pnpm/jiti@2.6.0/node_modules/jiti/dist/jiti.cjs:5:3522)
    at jitiRequire (/home/runner/work/freshet/freshet/frontend/node_modules/.pnpm/jiti@2.6.0/node_modules/jiti/dist/jiti.cjs:4:5561)
    at /home/runner/work/freshet/freshet/frontend/node_modules/.pnpm/jiti@2.6.0/node_modules/jiti/dist/jiti.cjs:6:1422
    at /home/runner/work/freshet/freshet/frontend/node_modules/.pnpm/@typescript-eslint+type-utils@8.59.1_eslint@10.3.0_jiti@2.6.0__typescript@7.0.2/node_modules/@typescript-eslint/type-utils/dist/builtinSymbolLikes.js:44:30
Additional Info

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with TypeScript 7.0.2 and inspect lib/index.cjs around line 787, where reading Intrinsic fails. Trace that access back to the TypeScript API compatibility issue and verify that the error no longer occurs when used through @typescript-eslint/type-utils.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.