I recently started receiving a "JavaScript error occurred in the main process" error message when trying to open RStudio. I've tried uninstalling R and RStudio and I'm still getting the following error message. I've contacted my company's help desk for assistance but they were not able to resolve the issue.
Are others getting a similar error message or know of a fix? Thank you.
Be sure to delete all remaining elements of RStudio off your system when attempting to install/reinstall, especially on a corporate networked environment (Registry Keys, System AppData, User Roaming AppData, User Local AppData, and any environment variables, etc.).
To me this seems to be a firewall or network restrictions issue when rstudio attempts to launch some webpack loader that may call an external API to get latest version details or something. No idea.
If you can, also try adding the RStudio executable to Defender Exclusions and check firewall settings: