-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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: support Next.JS version 14 #29558
Conversation
NOTE: this does not resolve #29552 |
94f9e9e
to
f0eb4fe
Compare
module.exports = { | ||
component: { | ||
experimentalSingleTabRunMode: true, | ||
devServer: {}, | ||
devServer: { |
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.
I think this was just missed previously when we added next support
@@ -2408,7 +2408,7 @@ Your configFile threw an error from: cypress-webpack.config.ts | |||
We stopped running your tests because your config file crashed. | |||
|
|||
CypressWebpackDevServerError: Incompatible major versions of webpack and webpack-dev-server! | |||
webpack-dev-server major version 5 only works with major versions of webpack 4 - saw webpack-dev-server version 5.0.4. | |||
webpack-dev-server major version 5 only works with major versions of webpack 5 - saw webpack-dev-server version 5.0.4. |
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.
noticed this error was wrong so fixed it here
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.
Looks good! Added a couple comments.
Co-authored-by: Matt Schile <[email protected]>
Co-authored-by: Matt Schile <[email protected]>
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Additional details
Adds CT support for Next.JS version 14. The main code change here is to make the CLI not complain when a user has Next.JS 14 installed since the support of wds 5 in #29306 and fixing resolution with
moduleResolution
: "bundler" in #28709 otherwise make Next.JS 14 work OOTB.In addition, a lot of our tests have been updated to at least use the last two versions of Next.JS (13 & 14) to make sure compatibility works, including a Next.JS 14 test with tailwind and default typescript configuration to make sure CT testing works out of the box. Other tests have also been additionally updated.
Steps to test
How has the user experience changed?
Users of Next.JS Component Testing will no longer see the support banner warning in the app.
PR Tasks
cypress-documentation
?type definitions
?