Repository navigation
fix(deps): downgrade typescript to 6 - #384
Merged
Merged
Conversation
TypeScript 7 ships no compiler API, so typescript-eslint crashed and took pnpm dev with it. Follow the TS 7 release notes: alias typescript to @typescript/typescript6 and keep tsc on 7 via @typescript/native. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain in the TypeScript compatibility and related configuration changes.
No open issues 🎉
1 file not reviewed
pnpm-lock.yaml: Generated file
What changed in this PR
This PR addresses the TypeScript compiler API incompatibility that prevents ESLint—and therefore pnpm dev—from starting. It gives API consumers TypeScript 6 while retaining TypeScript 7 for the command-line compiler.
Changes:
- Add side-by-side TypeScript aliases and update dependency resolutions.
- Tighten the
content-collectionsimport-sorting pattern and remove a wiki-page lint suppression. - Add Next.js-specific guidance for coding agents.
| File | Description |
|---|---|
src/app/wiki/[...slug]/page.tsx |
Remove the react-hooks/static-components suppression comment. |
pnpm-lock.yaml |
Resolve API consumers to TypeScript 6 and retain TypeScript 7. |
package.json |
Configure aliases for the TypeScript 6 API and TypeScript 7 compiler. |
eslint.config.mjs |
Match only the exact content-collections import in its sorting group. |
AGENTS.md |
Add guidance to consult bundled Next.js documentation. |
Review effort: Balanced
Drop the side-by-side aliases; TypeScript 6 has the compiler API that typescript-eslint needs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
TypeScript 7 ships no compiler API, so typescript-eslint crashed and
pnpm devfailed before starting Next. Downgrading to TypeScript 6 (as writing uses) restores linting; the two lint errors it was hiding are fixed.Risks
Dependabot now skips TypeScript major updates; remove that ignore once typescript-eslint supports TS 7 (typescript-eslint/typescript-eslint#10940).