A JavaScript error occurred in the main process
If you receive A JavaScript error occurred in the main process, Uncaught Exception message when you try to open apps like Skype, Discord, etc, in Windows 11/10, then you can carry out the following suggestions: Now let’s see how you can apply this solution(s) in practice.
1) Delete the app data folders in %AppData% and %LocalAppData%.
Deleting the %AppData% and %LocalAppData% folders should reset the app settings and possibly resolve the JavaScript error which is preventing you from opening the app.
Here’s how you can delete these folders:
Launch Windows Explorer and click on This PC and then navigate to the following location:
The
2) Re-register the JavaScript dll file
Registering the JavaScript DLL file using the built-in Regsvr.exe could help. To do this, open a Command Prompt as an administrator, type the following and hit Enter:
3) Reinstall the app in question
Although from one of our case scenarios presented above, the user stated that reinstalling the app didn’t fix the issue. Nevertheless, we still recommend you try to uninstall then reinstall the app.
I hope this helps you resolve this JavaScript error!