Skip to content

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

Closed

Description

@athoma13

Type: Bug

Getting this error with the latest version of vscode:

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

This error happens trying to load the Claude extension or the Git Graph extension.

VS Code version: Code 1.133.0 (a5b5009, 2026-08-11T22:14:08Z)
OS version: Windows_NT x64 10.0.26200
Modes:

System Info
Item Value
CPUs 13th Gen Intel(R) Core(TM) i7-13700H (20 x 2918)
GPU Status 2d_canvas: enabled
GPU0: VENDOR= 0x8086, DEVICE=0xa7a0 [Intel(R) Iris(R) Xe Graphics], DRIVER_VENDOR=Intel, DRIVER_VERSION=32.0.101.7084 ACTIVE
GPU1: VENDOR= 0x10de, DEVICE=0x28a0 [NVIDIA GeForce RTX 4060 Laptop GPU], DRIVER_VERSION=32.0.15.9608
GPU2: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.8875
Machine model name:
Machine model version:
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 31.68GB (9.41GB free)
Process Argv --crash-reporter-id f662c74c-5779-47aa-ba8e-93380eda4b3c
Screen Reader no
VM 0%
Extensions (10)
Name Identifier Author Version
Claude Code for VS Code anthropic.claude-code Anthropic 2.1.229
Tailwind CSS IntelliSense bradlc.vscode-tailwindcss bradlc 0.16.0
Docker DX docker.docker docker 0.18.0
Debugger for Firefox firefox-devtools.vscode-firefox-debug firefox-devtools 2.15.0
Todo Tree gruntfuggly.todo-tree Gruntfuggly 0.0.226
Git Graph mhutchie.git-graph mhutchie 1.30.0
Container Tools ms-azuretools.vscode-containers ms-azuretools 2.4.5
Live Share ms-vsliveshare.vsliveshare ms-vsliveshare 1.1.122
Vitest vitest.explorer vitest 1.50.8
Vue (Official) vue.volar Vue 3.3.9

Activity

  1. gjsjohnmurray commented on Aug 13, 2026

    @gjsjohnmurray
    Contributor

    IIRC this error has occasionally been reported over many years without the root cause being traced. Restarting VS Code typically cures it.

  2. athoma13 commented on Aug 13, 2026

    @athoma13
    Author

    Yup, another restart solved it. Thanks

  3. locked and limited conversation to collaborators on Sep 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions