Why after update VSCode giving this error? Could not read source map for ... (Node.js)

Viewed 18460

My program was working before updating Visual Studio Code. After updating, Why am I get this error?

Could not read source map for file:///c:/Users/s.aytan/Desktop/node/new/Dashboard2/node_modules/fecha/lib/fecha.umd.js: ENOENT: no such file or directory, open 'c:\Users\s.aytan\Desktop\node\new\Dashboard2\node_modules\fecha\lib\fecha.umd.js.map'
3 Answers

Try to add this property to the .vscode\launch.json file:

"resolveSourceMapLocations": [
    "${workspaceFolder}/**",
    "!**/node_modules/**"
]

According to this issue, this should be configured as default in the next versions.

you need to switch the launch type in .vscode\launch.json configuration from:

"type": "node",

to

"type": "pwa-node",

Try installing an older version of VSCode, that solve this same issue here.

Related