You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Alert error Failed to register a ServiceWorker #508
Describe the Bug
I try to display the git graph, but an alert is thrown with the error: Could not register service workers: InvalidStateError: Failed to register a ServiceWorker: The document is in an invalid state.
Steps to Reproduce
Steps to reproduce the behaviour:
Go to 'open git project in VScode'
Click on 'Git Graph" launch button in the Status Bar'
See error: Error loading webview: Error: Could not register service workers: InvalidStateError: Failed to register a ServiceWorker: The document is in an invalid state.
Expected Behaviour
A new tab was expected with the git graph of the project
Environment
Git Graph Extension Version: v1.30.0
Visual Studio Code Version: v1.56
Operating System: Linux Mint 19.3 (Tricia)
Screenshots (optional)
Additional Context (optional)
VScode recently updated from 1.55 to 1.56
Please raise this as a bug in Microsoft’s Visual Studio Code repository. The error you’ve included is caused within Visual Studio Code, and will almost certainly occur for all Webview’s contributed by any extension (the Git Graph View uses a Webview). Visual Studio Code has complete control and manages everything about Webview’s, extension’s only provide HTML + JS + CSS to be displayed in the view.
Activity
Daners commentedon May 12, 2021
Restart my computer, and everything works fine

mhutchie commentedon May 12, 2021
Hi @Daners,
Please raise this as a bug in Microsoft’s Visual Studio Code repository. The error you’ve included is caused within Visual Studio Code, and will almost certainly occur for all Webview’s contributed by any extension (the Git Graph View uses a Webview). Visual Studio Code has complete control and manages everything about Webview’s, extension’s only provide HTML + JS + CSS to be displayed in the view.
akshay-nm commentedon Mar 30, 2023
Getting this one again.
jodesous commentedon Sep 21, 2023
Same for me since 2 weeks, i have this error when i launch GitGraph. I have to restart vscode all the time.
I'm on linux (Pop!_OS 22.04 LTS)
lorisberti commentedon Jul 3, 2024
What's the solution for that? I'm seeing it today