chore(deps): upgrade to Next 15 + React 19, refresh safe minors - #7
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: be2e0a60ed
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| @@ -1,5 +1,6 @@ | |||
| /// <reference types="next" /> | |||
| /// <reference types="next/image-types/global" /> | |||
| /// <reference path="./.next/types/routes.d.ts" /> | |||
There was a problem hiding this comment.
Generate route types before type-checking
This reference points into .next/, which is gitignored and only generated by next dev, next build, or next typegen. In the checked workflow (.github/workflows/nextjs-ci.yml), npm run type-check runs before npm run build and there is no next typegen step, so a clean checkout can fail tsc --noEmit with TS6053: File '.next/types/routes.d.ts' not found. Remove this generated reference from the committed file or generate the Next route types before running standalone type-checks.
Useful? React with 👍 / 👎.
Summary
Upgraded Next.js from 14.2.5 to 15.5.19 and React from 18.3.1 to 19.2.7, with safe minor version refreshes for compatibility.
Version Changes
Code Fixes Applied
src/components/providers/theme-provider.tsxto importThemeProviderPropsfrom"next-themes"instead of"next-themes/dist/types"(Next 15 exports types directly).<a href="/">insrc/app/error.tsx(escapes broken render trees, must stay as raw anchor).Held Majors (No Bumps)
Gate Results
All gates verified green. Ready to merge.