Cannot open RStudio: A JavaScript error occurred in the main process.

Hi,

I failed to knit R Markdown (PDF) due to an error.
I found a POST which seems to be related to an issue and installed xcode by using the command: $ xcode-select --install

After this installation, I cannot open RStudio with the following error message:


Uncaught Exception:
Error: Config schema violation: view/zoomLevel must be >= 0.25 at e.exports._validate (/Applications/RStudio.app/Contents/Resources/app-x64/.webpack/main/index.js:8:50391)
at set store [as store] (/Applications/RStudio.app/Contents/Resources/app-x64/.webpac/main/index.js:8:49350)
at e.exports.set (/Applications/RStudio.app/Contents/Resources/app-x64/.webpack/main/index.js:8:48118)
at D.zoomLevel (/Applications/RStudio.app/Contents/Resources/app-x64/.webpack/main/index.js:17:43231)
at IpcMainImpl. (/Applications/RStudio.app/Contents/Resources/app-x64/.webpack/main/index.js:17:14515)
at IpcMainImpl.emit (node:events:526:28)
at EventEmitter. (node:electron/js2c/browser_init:161:11829)
at EventEmitter.emit (node:events:526:28)

Would you please give me some advice to fix the issue?
I really appreciate any help you can provide.

I somehow figured it out for myself.
I think it is not related Xcode.
But, the residues from previous RStudio was an issue.

I followed the way in this POST.
Clean things up thoroughly and reinstall it.