加载 Web 视图时出错: Error: Could not register service worker: InvalidStateError: Failed to register a ServiceWorker: The document is i
1、vscode (git graph出错)
报错内容:
加载 Web 视图时出错: Error: Could not register service worker: InvalidStateError: Failed to register a ServiceWorker: The document is in an invalid state…
解决方案 :
1、关闭vscode
2、按WIN + R,输入cmd,打开终端,然后输入命令
code --no-sandbox
3、会重启vscode,就可以正常使用了。
一杯茶,一包烟,一行代码打一天。