TypeScript mismatch between Node.js and Express after upgrading to v5 #6358
binarykitchen
started this conversation in
General
Replies: 1 comment
-
Researched further, and it seems to have been raised last November, but not solved yet, see: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
Just migrated my app to ExpressjS v5:
All works very well like before but one TypeScript error comes up:
At line:
I can't figure what the problem is. Variable
app
is of typeExpress
, coming from express-serve-static-core:But Node.js's createServer function, taken from @types/node v22.13.5, expects it to be of type:
Not sure if both are compatible? Or whether it's a new bug? Thanks for any inputs :)
Beta Was this translation helpful? Give feedback.
All reactions