Upgrade to Next 16 / React 19#207
Merged
Merged
Conversation
Next 16 removes the next lint command. Point CI and the .lint script at eslint directly and ignore the generated .next/ and build/ dirs, which eslint . picks up but next lint did not.
- next 15.2 -> 16.2, react/react-dom 18 -> 19.2 (+ @types) - @nextui-org/react -> @heroui/react 2.8 (deprecated rename, same API) - @mui/x-date-pickers 7 -> 8: AdapterDateFnsV3 import renamed to AdapterDateFns; transpilePackages workaround in next.config.js because the v8 ESM build trips over MUI 6's missing exports map - MUI stays on latest 6.x: material-react-table v3 requires MUI 6 - apexcharts 4 -> 5 (+ react-apexcharts 2): ApexAxisChartSeries is no longer a global type, import it from the module - swiper 11 -> 14, typescript 5.9, @types/node 24, remaining deps bumped to latest - not-found: pass RedirectType.replace as value (React 19 types) - tsconfig: reformatted by next build (react-jsx, .next/dev types)
Kept the Next 16 / React 19 dependency set, adopted main's newer bumps (@emotion/styled, @widgetbot/react-embed, @types/aos, eslint-config-prettier, eslint-plugin-import) and regenerated the lockfile, which also re-pins tripsit_drug_db to the commit the new combo checker needs. Counter.tsx needed a ref cast: react-countup typings predate React 19's RefObject<T | null>.
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.
Bumps the whole stack:
Fallout from the upgrade:
next lintis removed in 16, CI and the .lint script now call eslint directly};in style.cssVerified locally: tsc, eslint, next build all green, clicked through /, /factsheets, /factsheets/[drug], /appeal and /webchat.
Known issue (pre-existing, not from this PR): the homepage counters never animate because Counter.tsx points useCountUp at a non-existent element id. Will fix separately.