Cannot find module bootloader.js

See original GitHub issue

Lately I’ve been getting this when trying to use the debugger (which now also doesn’t work)

Error: Cannot find module '/Users/[User]/.vscode/extensions/ms-vscode.js-debug-nightly-2020.3.217/src/bootloader.js'
Require stack:
- internal/preload
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:954:17)
    at Function.Module._load (internal/modules/cjs/loader.js:847:27)
    at Module.require (internal/modules/cjs/loader.js:1016:19)
    at Module._preloadModules (internal/modules/cjs/loader.js:1285:12)
    at loadPreloadModules (internal/bootstrap/pre_execution.js:439:5)
    at prepareMainThreadExecution (internal/bootstrap/pre_execution.js:66:3)
    at internal/main/run_main_module.js:7:1 {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ 'internal/preload' ]
}

pwa-node doesn’t work at all now 😦 But i can’t reproduce it on a public repo (it may not be related to the above)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:75 (35 by maintainers)

github_iconTop GitHub Comments

167reactions
connor4312commented, May 1, 2020

Because this is happening in tasks, I think you’re running into https://github.com/microsoft/vscode/issues/96375. You should be able to fix this by:

  1. Setting debug.node.autoAttach to “disabled” (to clear previous bad state)
  2. Setting it back to on or off, as you prefer
  3. Using the⚠️ icon on the top right to relaunch terminals as desired (or just reopen/reload VS Code)
7reactions
connor4312commented, Aug 17, 2020

Okay, thanks. The solution for that issue is here: https://github.com/microsoft/vscode/issues/102057#issuecomment-657728467 If you’re running the latest 1.48, you should only need to do these two steps on workspaces where you have this issue:

  1. Set debug.node.autoAttach to “on”. Wait a moment.
  2. Set debug.node.autoAttach to “disabled”. Wait a moment.
  3. Open a new terminal, or reload the window.

(after this you can safely turn auto attach back on if you’d like to use it)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot Find Module Bootloader.js in VSCode DevContainer
Problem: When running node commands from within a DevContainer, you receive the error 'Cannot find module bootloader.js'.
Read more >
VS Code debugger: failure to find module (utf-8 characters)
I have just dealt with the same issue. There have been Unicode characters in my folder's path and I got the same error...
Read more >
Docker noob node app won't run in container - "Cannot find ...
Docker noob node app won't run in container - "Cannot find module bootloader.js" ... I'm new to docker and have been trying to...
Read more >
MODULE_NOT_FOUND during launch process in Visual ...
Hi, I am using Visual Studio Code and I created my launch.json file. The parse server config is saved in config.json.
Read more >
'MODULE_NOT_FOUND', requireStack: [ 'internal/preload' ]
Error : Cannot find module ... /AppData/Roaming/Code/User/workspaceStorage/fadd6220e3ee2ca4d53656b3c3210b45/ms-vscode.js-debug/bootloader.js'
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found