-
Notifications
You must be signed in to change notification settings - Fork 84
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
Upgrade NextJs to v 12 #894
Comments
what are the things we will need to update? |
I would start with updating I've quickly attempted this upgrade some time ago, but a lot of errors have surfaced from the next configuration file. I figured that will not be a sub 1 hour task and left it at that. |
@gurucrypto23 Mentioned in discord he is going to take a stab at this issue... |
I'm also going to take a stab at this, Next or react isn't my strongest arm but this seems to be a good issue to at least get the dev environment running. |
@aglamadrid19 that would be awesome. |
After upgrading react (v17) and next (v12) , webpack schema seems to be incompatible and it seems webpack 5 is required. Also Links I followed: Need guidance on how to move from here. Im guessing next step is how we upgrade from webpack 4 to webpack 5, but I'm not sure how to proceed. |
I would guess that next has some webpack logic bundled into it. The webpack like configuration that next uses is present in Though as the comment in that line points out that override was needed to fix some problems with NPM packages expecting to be able to import This is a tricky issue to solve. Last time I gave it a quick attempt it was throwing similar errors. Not sure how to continue, since I got stuck at a similar point. |
My best shot for moving forward here is to take this issue to the following: 1 - Take it to the webpack community hoping they can lead us in the right direction. I will perform all 3 and update this issue with all relevant information. Please let me know if this you agree proceeding this way. |
StackOverflow: NextJS Question: If anyone has any feedback please feel free to share it. |
I see you got some replies to your question @aglamadrid19. Sorry for late reply was OOO last week. I would say feel free to proceed in any way you see fit in order to make progress / get to a solution. |
Unassigning. |
Version 12 brings some cool things to the table: https://nextjs.org/blog/next-12.
One of the better things is, it upgrades compiler to rust and is said to be 3x-5x faster. That should be moderately beneficial improving the speed when developing new features.
The text was updated successfully, but these errors were encountered: