Skip to content

Bump typescript from 6.0.3 to 7.0.2#111

Open
dependabot[bot] wants to merge 3 commits into
mainfrom
dependabot/npm_and_yarn/typescript-7.0.2
Open

Bump typescript from 6.0.3 to 7.0.2#111
dependabot[bot] wants to merge 3 commits into
mainfrom
dependabot/npm_and_yarn/typescript-7.0.2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 8, 2026

Copy link
Copy Markdown
Contributor

Bumps typescript from 6.0.3 to 7.0.2.

Commits
Maintainer changes

This version was pushed to npm by microsoft1es, a new releaser for typescript since your current version.


@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Jul 8, 2026
@vercel

vercel Bot commented Jul 8, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
learn-postgres Error Error Jul 10, 2026 9:19am

Bumps [typescript](https://github.com/microsoft/TypeScript) from 6.0.3 to 7.0.2.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Commits](https://github.com/microsoft/TypeScript/commits)

---
updated-dependencies:
- dependency-name: typescript
  dependency-version: 7.0.2
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/typescript-7.0.2 branch from f845f52 to 684fab7 Compare July 10, 2026 07:49
@exekias

exekias commented Jul 10, 2026

Copy link
Copy Markdown
Member

@dependabot rebase

@dependabot @github

dependabot Bot commented on behalf of github Jul 10, 2026

Copy link
Copy Markdown
Contributor Author

Looks like this PR is already up-to-date with main! If you'd still like to recreate it from scratch, overwriting any edits, you can request @dependabot recreate.

@exekias

exekias commented Jul 10, 2026

Copy link
Copy Markdown
Member

@copilot fix the errors

TypeScript 7 (Go-based rewrite) removed the old compiler API (ts.Extension,
ts.TypeFlags, etc.) that @typescript-eslint uses. Since no version of
@typescript-eslint currently supports TypeScript 7, add a postinstall script
that creates TypeScript 5 symlinks inside eslint-config-next and ts-api-utils
so linting tools resolve TypeScript 5 instead of TypeScript 7.

Copilot AI commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

@copilot fix the errors

Fixed in commits b5cef84 and 9aa28aa.

Root cause: TypeScript 7 is the Go-based rewrite and completely changed its npm package API — the old compiler API (ts.Extension, ts.TypeFlags, etc.) no longer exists. The @typescript-eslint packages bundled inside eslint-config-next crash at module load time because they depend on this old API.

Fix: Since no version of @typescript-eslint currently supports TypeScript 7, added a compatibility shim:

  1. typescript-for-eslint: npm:typescript@~5 — installs TypeScript 5 alongside TypeScript 7
  2. scripts/setup-eslint-ts-compat.js (run as postinstall) — creates TypeScript 5 symlinks inside node_modules/eslint-config-next/node_modules/ and node_modules/ts-api-utils/node_modules/ so ESLint tooling picks up TypeScript 5 while the project still uses TypeScript 7 for compilation.

This workaround can be removed once @typescript-eslint ships TypeScript 7 support.

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

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants