Replies: 5 comments 1 reply
-
Logs are required for review from WSL teamIf this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. How to collect WSL logsDownload and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
The scipt will output the path of the log file once done. Once completed please upload the output files to this Github issue. Click here for more info on logging |
Beta Was this translation helpful? Give feedback.
-
@deCaldas if you're running Here's sample output after cloning your
and
The view from the Windows side on |
Beta Was this translation helpful? Give feedback.
-
@elsaco You're right!! That is how it should happen. Let's say at some point I started working on Windows OS when I was learning and then I made a copy to WSL 2 distro Debian, then I started to make another copy to WSL 2 distro Ubuntu. The first thing I saw was that VSCode was not working. The that I see In the terminal was: u@EjProI:~$ find . -type d -name "node_modules" -exec rm -rf {} +
u@EjProI:~$ cd home
u@EjProI:~/home$ code .
Loading "minimist" failed
Error: Cannot find module 'minimist'
Require stack:
- /home/u/.vscode-server/bin/5c3e652f63e798a5ac2f31ffd0d863669328dc4c/out/server-cli.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
at Module._load (node:internal/modules/cjs/loader:922:27)
at Module.require (node:internal/modules/cjs/loader:1143:19)
at require (node:internal/modules/cjs/helpers:119:18)
at r (/home/u/.vscode-server/bin/5c3e652f63e798a5ac2f31ffd0d863669328dc4c/out/server-cli.js:3:98)
at n.load (/home/u/.vscode-server/bin/5c3e652f63e798a5ac2f31ffd0d863669328dc4c/out/server-cli.js:2:1637)
at p.load (/home/u/.vscode-server/bin/5c3e652f63e798a5ac2f31ffd0d863669328dc4c/out/server-cli.js:1:10823)
at l (/home/u/.vscode-server/bin/5c3e652f63e798a5ac2f31ffd0d863669328dc4c/out/server-cli.js:3:9338)
at Object.errorback (/home/u/.vscode-server/bin/5c3e652f63e798a5ac2f31ffd0d863669328dc4c/out/server-cli.js:3:9457)
at p.triggerErrorback (/home/u/.vscode-server/bin/5c3e652f63e798a5ac2f31ffd0d863669328dc4c/out/server-cli.js:1:11117)
at /home/u/.vscode-server/bin/5c3e652f63e798a5ac2f31ffd0d863669328dc4c/out/server-cli.js:1:10868
at n.load (/home/u/.vscode-server/bin/5c3e652f63e798a5ac2f31ffd0d863669328dc4c/out/server-cli.js:2:1654)
at p.load (/home/u/.vscode-server/bin/5c3e652f63e798a5ac2f31ffd0d863669328dc4c/out/server-cli.js:1:10823)
at l (/home/u/.vscode-server/bin/5c3e652f63e798a5ac2f31ffd0d863669328dc4c/out/server-cli.js:3:9338)
at f._loadModule (/home/u/.vscode-server/bin/5c3e652f63e798a5ac2f31ffd0d863669328dc4c/out/server-cli.js:3:9466)
at f._resolve (/home/u/.vscode-server/bin/5c3e652f63e798a5ac2f31ffd0d863669328dc4c/out/server-cli.js:4:452)
at f.defineModule (/home/u/.vscode-server/bin/5c3e652f63e798a5ac2f31ffd0d863669328dc4c/out/server-cli.js:3:5561)
at _ (/home/u/.vscode-server/bin/5c3e652f63e798a5ac2f31ffd0d863669328dc4c/out/server-cli.js:4:1741)
at m (/home/u/.vscode-server/bin/5c3e652f63e798a5ac2f31ffd0d863669328dc4c/out/server-cli.js:2:2448)
at Object.<anonymous> (/home/u/.vscode-server/bin/5c3e652f63e798a5ac2f31ffd0d863669328dc4c/out/vs/server/node/server.cli.js:30:109669)
at Object.<anonymous> (/home/u/.vscode-server/bin/5c3e652f63e798a5ac2f31ffd0d863669328dc4c/out/vs/server/node/server.cli.js:33:9233)
at n._createAndEvalScript (/home/u/.vscode-server/bin/5c3e652f63e798a5ac2f31ffd0d863669328dc4c/out/server-cli.js:2:2492)
at /home/u/.vscode-server/bin/5c3e652f63e798a5ac2f31ffd0d863669328dc4c/out/server-cli.js:2:2133
at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/home/u/.vscode-server/bin/5c3e652f63e798a5ac2f31ffd0d863669328dc4c/out/server-cli.js'
],
phase: 'loading',
moduleId: 'minimist',
neededBy: [ 'vs/platform/environment/node/argv' ]
}
Here are the modules that depend on it:
[ 'vs/platform/environment/node/argv' ]
u@EjProI:~/home$ So I follow the path Uninstall Ubuntu to install a new one... |
Beta Was this translation helpful? Give feedback.
-
The strangest thing in the world.After the damage I did by running After deciding to leave the OS uninstalled to use another one to continue working, I realize that executing |
Beta Was this translation helpful? Give feedback.
-
Windows Version
Microsoft Windows [Versión 10.0.22631.3296]
WSL Version
2.1.5.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.146.1-2
Distro Version
Ubuntu 22.04
Other Software
Next.js version 14.1.4
Repro Steps
When I run
npm run dev
. And when I runnpx create-next-app my-app
Expected Behavior
I can't create a Next.js app (
npx create-next-app my-app
) or run a development environment (npm run dev
), but I can clone them (git clone [email protected]:deCaldas/home. git
).Actual Behavior
Diagnostic Logs
It seems like a very common mistake.
Beta Was this translation helpful? Give feedback.
All reactions