-
Notifications
You must be signed in to change notification settings - Fork 26.8k
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
Critical bug / breaking change on 14.1.0 preventing update from latest stable 14.0.4 #61002
Comments
It looks like it is an issue with using Node v20 on Codesandbox. I have created a repo at https://github.com/vercel-support/gh-61002-nextjs-nodev20 and ran it on my local dev environment without any issue (using Node 20). Here is the CodeSandbox I am using. Everything seems good as well. |
Well, in your codesanbox you do not have browserlist defined in package json, did you read the text of the issue? In Nextjs you are defining browserlist config in package.json. In the documentation there is a section about it. The problem is that a valid browserlist configuration which worked in previous stable version, that is 14.0.4, breaks the 14.1.0 version and breaks it so that the app crashes. @williamli |
@williamli any progress on reproducing? |
Yea my project is completely broken now thanks to this update, and I don't even know how to begin to fix it. Next JS is a horrible framework. Way too many rogue dependencies. IN my case the issue is that Webpack is broken due to a dependency which uses a dependency which uses a dependency which uses a dependency which uses the fs module which has been pulled because it has a security vulnerability. It's all just one big ball of dependency spaghetti. I really like Golang better. Thing is that Webpack 5 says that it includes the latest terser-webpack-plugin, so you shouldn't need it to be in your node-modules but when you examine the webpack module 'next/dist/build/webpack/plugins/terser-webpack-plugin' doesn't exist. ./node_modules/next/dist/compiled/webpack/bundle5.js https://nextjs.org/docs/messages/module-not-found Import trace for requested module: |
@bluelakee02 The codesandbox is 404 https://codesandbox.io/p/devbox/cranky-cache-2zw2zw I'm going to close this since there are no longer steps to reproduce and I'm pretty sure this was already fixed in PR #61791 Please try updating to the latest version of Next.js with If that doesn't work, please create a new issue with the steps to reproduce, thanks! |
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Link to the code that reproduces this issue
https://codesandbox.io/p/devbox/cranky-cache-2zw2zw
To Reproduce
Open the codesanbox link, you will see it won't start the dev server
Current vs. Expected behavior
And I know why, valid browserlist config which worked on previous stable version, breaks current version. It looks like you cannot have specified browsers for development environment. I am reporting this maily because it is very hard to debug and this breaking change is not mentioned anywhere. Also it is not clear for which browsers is dev build is optimized.
Expected behavior - to not crash or announce it as breaking change or mention in docs
Provide environment information
Which area(s) are affected? (Select all that apply)
Not sure
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
I think, that some opened issues are also caused by this - because in terminal, you will get errors from third party React libraries, so people might report this as an issue concerning v14.1.0 and specific library.
The text was updated successfully, but these errors were encountered: