Error loading webview: Error: Could not register service workers: InvalidStateError: Failed to register a ServiceWorker: The document is in an invalid state.
Describe the Bug Git Graph fails to open
Steps to Reproduce Steps to reproduce the behaviour:
- Cmd-Shift-P "> Git-Graph: View Git Graph (git log)"
Error loading webview: Error: Could not register service workers: InvalidStateError: Failed to register a ServiceWorker: The document is in an invalid state..
Expected Behaviour I expect to see the graph.
Environment
- Git Graph Extension Version: [1.30.0]
- Visual Studio Code Version: [1.66.1]
- Operating System: [MacOS 12.1]
Screenshots (optional) Add any screenshots showing the bug.
Additional Context (optional) Add any other context about the problem here.
⚠ Please make sure you complete all of the required sections of this template. Without this required information, it will be harder to replicate this bug, and cause additional delays in resolving it.
@ahammond
I think it's not vscode-git-graph problem but vscode problem.
Please refer to the issue here
I had the same problem, but when I completely shut down vscode and restarted it, the problem was solved.
I'd tried restarting and it didn't work but not sure what changed tried closing and opening again and this time it worked.