Express 5.1 source map issue not present in 4.21 #6720
arenddeboer
started this conversation in
General
Replies: 0 comments 4 replies
-
What would really help is if you could provide an example of some code and the steps to follow to debug it. It seems more like a Node.js bug than an Express bug, but to be able to say that, it would be great if you could share a code example. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Today I ran into an issue where express 5.1 somehow prevents source maps / line numbers from working.
Throwing an error inside a route handler results in a useless call stack referring to line 1 column 9827928
I was unable to create an isolated test case, the problematic code worked well in my small test project.
I still wanted to at least start a discussion in case someone else runs into this.
I do have a somewhat unconventional way to run my code which may or may not have anything to do with this issue:
node --experimental-transform-types --enable-source-maps --import tsx server.ts
Anyway, downgrading express to 4.x solved the issue.
But if others also run into this, maybe it's worth investigating further.
Beta Was this translation helpful? Give feedback.
All reactions