Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VScode Mac Error loading webview: Error: Could not register service workers

I'm working on a Mac with Catalina installed and the latest version now reports this error:

Error loading webview: Error: Could not register service workers: InvalidStateError: Failed to register a ServiceWorker: The document is in an invalid state.

This happens when i try to open Git - View History tab.

How can this be resolved?


Version

enter image description here

On a side note, i saw some older issues with suggestions to load code with --no-sandbox which does not imply to my case (implies only to Windows users i think)

like image 428
sivan Avatar asked Jul 18 '26 18:07

sivan


1 Answers

Try to terminate VScode in activity monitor and re-run it. In most cases, the problem is related to an instance (VScode app or updater) running in background.

like image 91
Pured Avatar answered Jul 23 '26 01:07

Pured



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!