@types/node 15.9.0 breaks build with @types/express 4.17.12 #53807
Unanswered
RandScullard
asked this question in
Issues with a @types package
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm building an Express web server with @types/express 4.17.12. I was using @types/node 15.6.2 and my build was fine. When I update @types/node to 15.9.0 or later, I get an error on one of my app.use function calls:
app.use(express.json())
I see that in @types/node 15.9.0, the following line was added to the OutgoingMessage definition in http.d.ts:
readonly req: IncomingMessage;
If I comment out this one line my build works fine, so it looks like maybe this change broke compatibility with @types/express.
Beta Was this translation helpful? Give feedback.
All reactions