How do I generate Node source maps for my dev server? #9781
Unanswered
ersinakinci
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Did you ever find out? |
Beta Was this translation helpful? Give feedback.
0 replies
-
https://remix.run/docs/en/main/other-api/dev#remix-vitebuild |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm running Remix with Hono and Vite. When I have a server-side error in dev, I get stack traces without source maps.
I saw this answer from @kiliman to another question about source maps, which inspired me to debug by using
source-map-support
with theretrieveSourceMap
hook that he suggested. I modified it to simply tell me where the library was attempting to load source maps from:I see that it's attempting to load source maps from various locations on my file system, from within my project directory. However, I don't see any
.map
files on the file system.I know that Vite's dev server generates source maps for the browser bundle and makes these available through http. Those maps load fine in Chrome. But how do I get the maps for my Node environment?
(I'm surprised how difficult it is to find information on how these maps are generated by Vite, if at all, so this may not be the right place to ask. I'd appreciate anyone pointing me in the right direction.)
Beta Was this translation helpful? Give feedback.
All reactions