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

**URL:** <https://discourse.julialang.org/t/vscode-makie-error-loading-webview-error-could-not-register-service-worker-invalidstateerror-failed-to-register-a-serviceworker-the-document-is-in-an-invalid-state/126972>\
**Category:** General Usage\
**Created:** [March 15, 2025, 3:59am UTC](https://discourse.julialang.org/t/vscode-makie-error-loading-webview-error-could-not-register-service-worker-invalidstateerror-failed-to-register-a-serviceworker-the-document-is-in-an-invalid-state/126972 "2025-03-15T03:59:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jar1](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@jar1](https://discourse.julialang.org/u/jar1)\
**Post date:** [March 15, 2025, 3:59am UTC](https://discourse.julialang.org/t/vscode-makie-error-loading-webview-error-could-not-register-service-worker-invalidstateerror-failed-to-register-a-serviceworker-the-document-is-in-an-invalid-state/126972/1 "2025-03-15T03:59:01Z")

</div>

In VSCode-Julia 1.127.2, when I try to view a Makie plot it says

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

and doesn’t show the plot.

Any ideas? I tried restarting VSCode.

---

<div class="post-metadata">

**Author:** ![jar1](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@jar1](https://discourse.julialang.org/u/jar1)\
**Post date:** [March 15, 2025, 4:50am UTC](https://discourse.julialang.org/t/vscode-makie-error-loading-webview-error-could-not-register-service-worker-invalidstateerror-failed-to-register-a-serviceworker-the-document-is-in-an-invalid-state/126972/2 "2025-03-15T04:50:02Z")

</div>

Killing all vscode instances seems to do the trick.
