-
-
Notifications
You must be signed in to change notification settings - Fork 17.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
wrong signature for req.body and next() #6370
Comments
I'm unable to reproduce. What version of Typescript are you using? Will you confirm your Express dependency versions?
|
I think problem is:
In my case get request body undefined. I don't know why body not parsed.
|
If the body is not sent in the response, it will be undefined. That is one of the breaking changes that were made. Check the migration guide. |
This is a breaking change, the body now is undefined instead of |
|
Correct - it is a breaking change introduced in v5 that is documented in the migration guide. I believe the purpose is to disambiguate between the user providing an empty body, and the app not parsing the body.
By filtering on "express", the Typescript version is not shown 🙂 |
currently I don't use
Env:
package.json
|
I noticed that the problem occurs when using |
This is a regression in v5
Environment information
Version:
Platform:
Linux 3f32d8f1babe 6.11.0-17-generic #17~24.04.2-Ubuntu SMP PREEMPT_DYNAMIC Mon Jan 20 22:48:29 UTC 2 x86_64 GNU/Linux
Node.js version:
v22.12.0
The text was updated successfully, but these errors were encountered: