feature node: can't load bootsrap.js
Just started happening
FROM mcr.microsoft.com/devcontainers/go:1-1.20-bullseye
Its also happening with other base images.
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {},
"ghcr.io/devcontainers/features/github-cli:1": {},
// "ghcr.io/devcontainers-contrib/features/neovim-apt-get:1": {},
"ghcr.io/dhoeric/features/act:1": {},
"ghcr.io/guiyomh/features/vim:0": {},
"ghcr.io/devcontainers-contrib/features/tmux-apt-get:1": {},
"ghcr.io/devcontainers/features/node:1": {},
"ghcr.io/devcontainers/features/hugo:1": {
"extended": true
},
"ghcr.io/warrenbuckley/codespace-features/sqlite:1": {}
},
╰─⠠⠵ npm install
node:internal/modules/cjs/loader:1147
throw err;
^
Error: Cannot find module '/home/vscode/.vscode-server/data/User/workspaceStorage/af6cfb4038b5a33d85eb5ea5ee538367/ms-vscode.js-debug/bootloader.js'
Require stack:
- internal/preload
at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
at Module._load (node:internal/modules/cjs/loader:985:27)
at internalRequire (node:internal/modules/cjs/loader:175:19)
at Module._preloadModules (node:internal/modules/cjs/loader:1582:5)
at loadPreloadModules (node:internal/process/pre_execution:755:5)
at setupUserModules (node:internal/process/pre_execution:193:5)
at prepareExecution (node:internal/process/pre_execution:153:5)
at prepareMainThreadExecution (node:internal/process/pre_execution:56:10)
at node:internal/main/run_main_module:11:19 {
code: 'MODULE_NOT_FOUND',
requireStack: [ 'internal/preload' ]
}
Node.js v20.11.1```
Doing nvm install and then reload window, get node working again't but no my port forwarding has broke
Hi 👋
Can you try with the simple dev container config? This works for me.
{
"image": "mcr.microsoft.com/devcontainers/go:1-1.20-bullseye",
"features": {
"ghcr.io/devcontainers/features/node:1": {}
}
}
In the past whenever we saw this issue, it was due to a bug in VS Code, see https://github.com/microsoft/vscode-js-debug/issues/374#issuecomment-675020979 and https://github.com/microsoft/vscode-remote-release/issues/4308
Hence, would be worth opening an issue with https://github.com/microsoft/vscode if you are still running into this issue.
Hi 👋
Can you try with the simple dev container config? This works for me.
{ "image": "mcr.microsoft.com/devcontainers/go:1-1.20-bullseye", "features": { "ghcr.io/devcontainers/features/node:1": {} } }
In the past whenever we saw this issue, it was due to a bug in VS Code, see microsoft/vscode-js-debug#374 (comment) and microsoft/vscode-remote-release#4308
Hence, would be worth opening an issue with https://github.com/microsoft/vscode if you are still running into this issue.
The version commands of node and npm work fine for me also when the issue is present.
try starting the runtime with a simple node command using workspaces? ill give it ago later, and post.
It started working again without the debugger on auto attach. I found that in the other issues, but re activating causes it to crash again.
Im not sure what changed, it occoured after a vs devcontainer rebuild, but I also changed to use workspaces. ie multiple folders open in vscode devcontains.
