Skip to content

fix(tsconfig): use ES2017 target for TypeScript 7 - #106

Merged
Luen merged 1 commit into
mainfrom
fix/ts7-target-es2017
Aug 14, 2026
Merged

fix(tsconfig): use ES2017 target for TypeScript 7#106
Luen merged 1 commit into
mainfrom
fix/ts7-target-es2017

Conversation

@Luen

@Luen Luen commented Aug 14, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • TypeScript 7 removed target=ES5 (TS5108), which caused next build typechecking to fail after the recent major upgrade.
  • Update tsconfig.json compilerOptions.target to ES2017 (Next.js-compatible default).

Test plan

  • npx tsc --noEmit passes
  • npm run build passes locally
  • Note: npm run lint still fails due to typescript-eslint / eslint-config-next not supporting TypeScript 7.0 + ESLint 10 yet (ecosystem blocker, separate from this fix)

TypeScript 7 removed target=ES5 (TS5108), which broke next build typechecking after the TS 7 upgrade.

Co-authored-by: Cursor <cursoragent@cursor.com>
@vercel

vercel Bot commented Aug 14, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
jodierummer Building Building Preview Aug 14, 2026 12:54am

@Luen
Luen merged commit 4d39c38 into main Aug 14, 2026
7 of 8 checks passed
@Luen
Luen deleted the fix/ts7-target-es2017 branch August 14, 2026 00:55

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Claude BugBot Analysis

The diff is a single-line tsconfig.json change (target: es5 → ES2017), a deliberate and correct fix for TypeScript 7 removing ES5 target support (TS5108); no logic, security, or correctness defects found.

No bugs were detected in this PR.

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