Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not load source map from acorn.js.map on Node 15 #903

Closed
vsDizzy opened this issue Jan 8, 2021 · 3 comments
Closed

Could not load source map from acorn.js.map on Node 15 #903

vsDizzy opened this issue Jan 8, 2021 · 3 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Milestone

Comments

@vsDizzy
Copy link

vsDizzy commented Jan 8, 2021

Debug console is polluted with warning message.

image

To Reproduce

  1. Create bare ts-node project with launch.json
    or clone this repo
  2. install packages
  3. press F5
  4. See DEBUG CONSOLE

Log File
vscode-debugadapter-a63519d1.json.gz

VS Code Version: 1.52.1

@vsDizzy vsDizzy added the bug Issue identified by VS Code Team member as probable bug label Jan 8, 2021
@connor4312 connor4312 changed the title Could not load source map from acorn.js.map Could not load source map from acorn.js.map on Node 15 Jan 8, 2021
@SamuelScheit
Copy link

@connor4312 how did you solve this issue?

@connor4312
Copy link
Member

This was a bug in js-debug with Node >=15. It's fixed in the nightly build and will be released to stable next week.

@connor4312 connor4312 added this to the January 2021 milestone Jan 30, 2021
@sbatten sbatten added the verified Verification succeeded label Feb 2, 2021
@FossPrime
Copy link

FossPrime commented Jun 10, 2021

Was an issue for me with node loaders. I just had to ignore internal code

"resolveSourceMapLocations": [
        "!**/node_modules/**",
        "!node:internal/**"
      ]

Note the distinct lack of "${workspaceFolder}/**" we don't need no sourcemaps where we're going... the loader makes the code transparent, adding that breaks the transparency and makes it show the loader output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

5 participants