-
-
Notifications
You must be signed in to change notification settings - Fork 376
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
Regression from 7.2.1 to 7.3.0 #1920
Comments
Sorry, I can't say there is a problem without reproduciable example and we always sent |
Anyway if you can create a reproducible repo I will investigate |
Hello, I am having the same issue in a React project, changing the version of I also noticed that while it happens when The
|
There are no problems with |
/cc @alan-agius4 Maybe I can help with debug? |
@alexander-akait, without a reproduction of the issue, it's difficult to understand what's going on. Unless a reproduction is provided, I’d say this is not actionable. |
Apparently, webpack-dev-server does not handle HEAD requests, see "Note for webpack-dev-server users" at: https://github.com/bahmutov/start-server-and-test/blob/master/README.md For some reason this hasn't been a problem until now when a dependency update bumped webpack-dev-middleware from 7.2.1 to 7.3.0, the regression described in this issue might be real: webpack/webpack-dev-middleware#1920
I was running into this problem with start-server-and-test. I found this note in the README about Changing to GET requests per the note worked for me. I'm not sure why HEAD requests worked for me before (?) but it only became an issue when I was updating dependencies and |
That's weird, because we are doing it https://github.com/webpack/webpack-dev-middleware/blob/master/src/middleware.js#L800, can you debug it locally and provide more infromation? |
I have a minimal repro of the issue here: https://github.com/shanedg/webpack-dev-middleware-1920 |
I will look soon, thank you |
Found a problem, fix will soon |
Thank you @alexander-akait |
Hello webpack Team.
I believe there is a regression between 7.2.1 and 7.3.0.
Bug report
In our angular project we use webpack builder. This has a dependency to webpack-dev-middleware.
When setting up a project that uses 7.3.0, an error is thrown as seen below.
NOTE: The setup is just a default setup, but we still use webpack instead of esbuild.
Actual Behavior
An error is thrown after starting the project.
The interesting thing is that our projects do not have SSR enabled in any way. So what webpack does is to just behave as a file server.
There seems to be other users affected by this: https://stackoverflow.com/questions/78777506/angular-18-post-request-node-http-outgoing659-throw-new-err-http-headers-sen
Expected Behavior
No regression, 7.3.0 should work like 7.2.1.
How Do We Reproduce?
I'm sorry, I'm not able to provide an minimal reproducable example.
Please paste the results of
npx webpack-cli info
here, and mention other relevant informationwebpack info:
Error:
The text was updated successfully, but these errors were encountered: