简体   繁体   中英

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

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'

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.

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

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

"type": "node",

to

"type": "pwa-node",

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM