-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Incorrect sourceMappingURL added to generated server bundle prevents debugging #367
Comments
I've also confirmed it's using the remix
Or there's some configuration that I'm unaware of that we're doing wrong in our esbuild server bundle. |
Pasting this here for context: evanw/esbuild#1290 Changing |
I've updated my gist to add a patch for sourcemap to inline. Hopefully the PR will make it in. https://gist.github.com/kiliman/a9d7c874af03369a1d105a92560d89e9 |
Yes, PR #2065 fixes this as well as enables breakpoint debugging without any hacks. |
By the way, you can also make breakpoints work by doing something like this in your launch.json within VS Code: {
"type": "node-terminal",
"request": "launch",
"name": "Launch Server",
"command": "npm run dev:remix",
"skipFiles": ["<node_internals>/**"],
"sourceMapPathOverrides": {
"route:*": "*" // <-- fix up the paths, so route:<path> just becomes <path>
},
"outFiles": ["${workspaceFolder}/build/**/*.js"]
},
{
"name": "Launch Client",
"request": "launch",
"type": "msedge",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}/public/build" // tell the debugger that relative sourcemaps paths should be resolved from here
} Aside from having to fix the |
Thanks. TIL |
Fixed in #2065 🎉 |
🤖 Hello there, We just published version Thanks! |
Hi there ! Thanks for the amazing work. Where can i find the documentation about enabling sourcemaps in dev mode ? I'm trying things but nothing seems to work T_T |
@heiso Are you on the latest Remix? Sourcemaps should automatically generate in development. You have to opt-in to sourcemaps for production They removed the sourcemap option in remix.config |
Updated my gist with patch to use
sourcemap: 'inline'
. This solves the issue.Here's the gist:
https://gist.github.com/kiliman/a9d7c874af03369a1d105a92560d89e9
The text was updated successfully, but these errors were encountered: