Cannot find module bootloader.js
See original GitHub issueLately 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:
- Created 4 years ago
- Comments:75 (35 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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:
debug.node.autoAttach
to “disabled” (to clear previous bad state)on
oroff
, as you preferOkay, 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:
(after this you can safely turn auto attach back on if you’d like to use it)