-
Notifications
You must be signed in to change notification settings - Fork 31k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VS Code frequently fails to load with ERR_MODULE_NOT_FOUND: Cannot find module 'C:\Program Files\Microsoft VS Code\resources\app\out\main.js' #233625
Comments
Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.95.2. Please try upgrading to the latest version and checking whether this issue remains. Happy Coding! |
This will be fixed by #232990 |
@joaomoreno, the work item you linked says this is an issue with built-in extensions. Is this an issue with specific extensions or all extensions? The only extensions I have enabled are Microsoft's C++ and .NET extensions. Also, shouldn't this be resolved as something other than "not planned" if it will be fixed by a work item this month? |
I just updated vs and I now have the issue. |
I have been facing this issue since past 5+ months and frequency is about every 2 - 3 weeks and the solution is just re-install. The previous comment from @joaomoreno gave me some hope but then closing it as not planned is very disheartening. Would it be possible to fix the issue at a higher priority? |
I also have been facing this issue constantly. In fact, I have hit it twice in the past 2 weeks. It's frustrating to have to constantly reinstall. Is there anything that can be done to work around this problem, short of getting a fix? |
This is happening again 12/19/2024. This issues has not been fixed. |
Has nothing to do with version. Whenever it happens, I re-install from old installation .exe and the error goes away. |
I don't know if it helps but last time it happened to me was because I updated vscode while it was still running. |
A possible cause A possible fix, which works for me Symptoms
The repaired state (right after reinstalling VSCode): |
I have also been facing this issue frequently. The "update while running" might be a cause, as the company pushes updates periodically and I have no control of when they are applied. Today it happened again and there was an update. It's very unfortunate that this issue is marked as closed/not planned as it severely affects user experience. |
I've had this for a year, I think. Reinstall is only fix. |
Merge with #52855 |
Does this issue occur when all extensions are disabled?: Yes/No
Steps to Reproduce:
VS Code frequently fails to load with "A JavaScript error occurred in the main process": ERR_MODULE_NOT_FOUND: Cannot find module 'C:\Program Files\Microsoft VS Code\resources\app\out\main.js' (see screen shot).
After hitting this error, I can’t use VS Code again until I reinstall it to fix the missing module (which often requires manually killing a stuck running instance of code.exe in Task Manager). I’ve been hitting this error for many months and it still repros after many VS Code updates (currently on 1.95.0). Sometimes I can go weeks between repros and sometimes (like today) it repros multiple times in the same day. Is this a known bug? If not, are there any logs you need besides the call stack in the screen shot to root cause and fix it?
The text was updated successfully, but these errors were encountered: