-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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 webpack-dev-server v4 #17918
Conversation
Thanks for taking the time to open a PR!
|
@ZachJW34 @BBB is it possible that your work could solve this issue of mine? It happened just after the upgrade to WP5 and WP-dev-server4 |
@@ -53,25 +53,33 @@ export async function start ({ webpackConfig: userWebpackConfig, template, optio | |||
hot: false, | |||
} | |||
|
|||
if (webpackDevServerPkg.version.match(/3\./)) { | |||
if (webpackDevServerFacts.isV3()) { |
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.
A debug message would be nice to print the version of WDS being used.
The build step for
|
It could! This will go out during continuous deployment and you'll be notified. |
Test summaryRun details
View run in Cypress Dashboard ➡️ Flakiness
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
To debug the specific "webpack overlay" compilation issues, you should check out the following steps that we discussed:
|
Thank you @JessicaSachs! |
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.
Just some small comments
npm/webpack-dev-server/test-wds-3.js
Outdated
process.exit(exitCode) | ||
} | ||
|
||
pkg.devDependencies['webpack-dev-server'] = '^3.11.0' |
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.
Hm, should we specify the exact version during CI runs to ensure the tests always us the same one? eg 3.11.0
(no ^
)
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.
Makes sense I'll pin it.
@@ -47,7 +47,7 @@ class RunsListEmpty extends Component { | |||
url: 'https://on.cypress.io/ci', | |||
params: { | |||
utm_medium, | |||
utm_campaign: 'Run Guide', | |||
utm_campaign: 'CI', |
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.
Was this file changed intentionally?
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.
@JessicaSachs recommended that I pull latest develop
into this branch since there were certain tests failing on master. These changes are from fa4b9d7 which fixes some of those tests.
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.
Talked with @JessicaSachs and reverted the merge from develop!
9a30e0a
to
f26f555
Compare
It is still hanging for me with next js typescript. When i run yarn cypress open-ct the test runner hangs indefinitly. |
@ShashankHegde16 can you please share a repository with a minimal reproduction? |
cypress.json - { "projectId": "512hep" The component test hangs forever. |
@ShashankHegde16 Your error seems to be related to the newest version of Next #17992. Is your problem solved if you pin your version of Next to |
Pinning it worked. Thanks |
Recreating a bug from screenshots of |
User facing changelog
Support for
webpack-dev-server v4
Additional details
This work is based on #17869 (thanks @BBB), with a few tweaks and some added test coverage of
webpack-dev-server@3
.Pinned
http-proxy
types for@packages/server-ct
since the newly added types forwebpack-dev-server
was resolving a newer version and causing type issues.Changed
align-items: start;
toalign-items: flex-start;
since the newer version of webpack-dev-server was surfacing the compile warning as an overlay. I didn't want to disable the overlay since it's nice DX and it was a small change to resolve the warning.How to test
I tested this by running the component tests inside the
npm/{vue/react/angular}
packages as well as linking the locally built package into the https://github.com/cypress-io/cypress-component-testing-examples repo and running those component tests. For the examples that don't explicitly depend onwebpack-dev-server
, I installed both v3 and v4 and made sure the server was using the corresponding package.How has the user experience changed?
PR Tasks
cypress-documentation
?type definitions
?cypress.schema.json
?