-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: upgrade to NextJS 13.5 #46
Conversation
✅ Deploy Preview for oeps ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great, so happy it went smoothly. There are a few small warnings in the Netlify build, could you see about fixing these before the final merge? If one of them becomes a big hassle, just skip it. Not a huge deal:
The Next.js plugin was not detected in your ESLint configuration. See https://nextjs.org/docs/basic-features/eslint#migrating-existing-config
Warning: React version not specified in eslint-plugin-react settings. See https://github.com/jsx-eslint/eslint-plugin-react#configuration .
⨯ ESLint: Error while loading rule 'react/display-name': `[[GeneratorState]]` is not present on `O` Occurred while linting /opt/build/repo/explorer/pages/_app.js
Creating an optimized production build ...
npx browserslist@latest --update-db
@mradamcox fixing the ESLint warnings for NextJS/React uncovered a bunch of additional warnings that I will need more time to address. Not sure if these are priority for this PR, or if they can wait for a future PR, but most of them seem like they would be quick to address:
|
Ah, ok, yeah that makes sense. I'd say you should actually go for it. Can't hurt to fix these things up, and the SDOH & Place app is also NextJS so it's good to get a familiar with some of these patterns. Thank you! |
@mradamcox I have updated this PR to fix all of the build warnings above 👍 Summary of changes:
Most of these were simple changes, except for the new |
@bodom0015, looks like
Are you seeing that too? Seems like the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, looks good to me, thanks for figuring all of this out. I've made a separate ticket with some pros/cons for updating the <img>
tags, so we can address that down the road if we want to.
Problem
We would like to upgrade NextJS from v12 to at least v13.5 (but not to v14 just yet)
Fixes #45
Approach
13.5.6
NOTE: We don't appear to use
<Image>
,<Link>
, or<Script>
anywhere, so much of the migration notes did not seem to apply to our code 🤷♀️How to Test
yarn install
to update your installed dependenciesyarn build
to produce a production buildyarn start
to serve the new build on your dev server