After connecting to Docker container from VS Code, I got the following error as I used git to fetch changes from a server:
internal/modules/cjs/loader.js:883
throw err;
^
Error: Cannot find module '/tmp/vscode-remote-containers-9168460db1bc6c2d9c04cb2b7365d59a969e72f6.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
at Function.Module._load (internal/modules/cjs/loader.js:725:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Password for 'https://KLA-GPG@dev.azure.com':
internal/modules/cjs/loader.js:883
throw err;
^
Error: Cannot find module '/tmp/vscode-remote-containers-9168460db1bc6c2d9c04cb2b7365d59a969e72f6.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
at Function.Module._load (internal/modules/cjs/loader.js:725:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
It seems that git was looking for some temporary file generated from the connection from VS Code to the container. Although git fetch
was successful with this error message, can someone let me know what caused this error message and how to fix it?