24

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'
baruchiro
  • 5,088
  • 5
  • 44
  • 66
safa aytan
  • 431
  • 1
  • 6
  • 16

3 Answers3

44

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.

baruchiro
  • 5,088
  • 5
  • 44
  • 66
3

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

"type": "node",

to

"type": "pwa-node",
1

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

Sebastian Juarez
  • 3,317
  • 2
  • 21
  • 20
  • 2
    This comment should not be downvoted. The updates to VS code seem poor at times and all too often the best solution is to not install newer versions. VS code needs to do a better job testing. – Sigma VX Jan 04 '21 at 18:52