Repository navigation
Replies: 4 comments
|
Your output shows that the map exists in In the browser Network panel, locate the actual JS request and resolve its relative Please share the launch configuration and the actual browser JS/map URLs, with sensitive values removed. I would not suggest a blanket override before seeing those values, because it could break maps for the rest of the app. Reference: https://code.visualstudio.com/docs/nodejs/browser-debugging Prepared with AI assistance and checked against the linked documentation. I have not reproduced your original project locally. |
|
Hi! One thing stands out in the error: VS Code is trying to locate the map inside Vite uses I'd start with these checks:
As a temporary workaround, you can also exclude third-party Could you share your |
|
The giveaway is the resolved path: In the browser Network panel, open the real Post your launch config and the actual JS/map URLs. I would not add a blanket — |
|
My fix was to set {
"name": "Edge",
"request": "launch",
"type": "msedge",
"url": "https://localhost:3000",
// Vite's root is src, so it serves node_modules as /@fs/<absolute path>, which is /@fs/C:/... on Windows
"pathMapping": { "/@fs/": "/" },
"windows": { "pathMapping": { "/@fs/": "" } },
"webRoot": "${workspaceFolder}/src"
}, |

My fix was to set
pathMappingin launch.json{ "name": "Edge", "request": "launch", "type": "msedge", "url": "https://localhost:3000", // Vite's root is src, so it serves node_modules as /@fs/<absolute path>, which is /@fs/C:/... on Windows "pathMapping": { "/@fs/": "/" }, "windows": { "pathMapping": { "/@fs/": "" } }, "webRoot": "${workspaceFolder}/src" },