Describe the bug
Next.js now uses eval-source-map from version 9 onwards.
It looks like eval-source-map generates webpack-internal:///./ references.
I added the settings below but it makes no difference:
"sourceMapPathOverrides": {
"webpack-internal:///./": "${workspaceFolder}/"
}
I wonder if
|
if (parsed.protocol === 'webpack-internal:') { |
|
return undefined; |
|
} |
has anything to do with it?
Should webpack-internal:///./ be added to this list?
|
export function defaultSourceMapPathOverrides(webRoot: string): { [key: string]: string } { |
|
return { |
|
'webpack:///./~/*': `${webRoot}/node_modules/*`, |
|
'webpack:////*': '/*', |
|
'webpack://?:*/*': `${webRoot}/*`, |
|
'webpack:///([a-z]):/(.+)': '$1:/$2', |
|
'meteor://💻app/*': `${webRoot}/*`, |
|
}; |
|
} |
To Reproduce
Steps to reproduce the behavior:
- Clone https://github.com/jasonwilliams/nextjs9-typescript-server-vscode-example
- yarn install
docker-composer up
- Launch -> launch server (Docker)
- set a breakpoint in pages/index.tsx
Log File
VS Code Version: 1.51
Describe the bug
Next.js now uses
eval-source-mapfrom version 9 onwards.It looks like
eval-source-mapgenerateswebpack-internal:///./references.I added the settings below but it makes no difference:
I wonder if
vscode-js-debug/src/targets/browser/browserPathResolver.ts
Lines 111 to 113 in e2191de
Should
webpack-internal:///./be added to this list?vscode-js-debug/src/configuration.ts
Lines 931 to 939 in 4d7737f
To Reproduce
Steps to reproduce the behavior:
docker-composer upLog File
VS Code Version: 1.51