# Julia for VS Code: error when trying to output plot

**URL:** https://discourse.julialang.org/t/julia-for-vs-code-error-when-trying-to-output-plot/71394
**Category:** General Usage
**Tags:** vscode
**Created:** [November 12, 2021, 4:38pm UTC](https://discourse.julialang.org/t/julia-for-vs-code-error-when-trying-to-output-plot/71394 "2021-11-12T16:38:26Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Olivier\_Merchiers](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/olivier_merchiers/32/4073_2.png) [@Olivier\_Merchiers](https://discourse.julialang.org/u/Olivier_Merchiers)
#### Post date: [November 12, 2021, 4:38pm UTC](https://discourse.julialang.org/t/julia-for-vs-code-error-when-trying-to-output-plot/71394/1 "2021-11-12T16:38:26Z")

</div>

I get this error:

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

```

Here are the versions:  
Julia1.63  
julia for vscode : 1.4.3 and 1.5  
VS code :1.62.2  
On ubuntu 18

Thanks in advance  
Olivier

---

<div class="post-metadata">

### Author: ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)
#### Post date: [November 12, 2021, 9:18pm UTC](https://discourse.julialang.org/t/julia-for-vs-code-error-when-trying-to-output-plot/71394/2 "2021-11-12T21:18:52Z")

</div>

> [@Olivier\_Merchiers](#):
>
> `Error loading webview: Error: Could not register service workers: `

Have you checked [this related post on SO?](https://stackoverflow.com/questions/67698176/error-loading-webview-error-could-not-register-service-workers-typeerror-fai)

---

<div class="post-metadata">

### Author: ![Olivier\_Merchiers](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/olivier_merchiers/32/4073_2.png) [@Olivier\_Merchiers](https://discourse.julialang.org/u/Olivier_Merchiers)
#### Post date: [November 12, 2021, 9:39pm UTC](https://discourse.julialang.org/t/julia-for-vs-code-error-when-trying-to-output-plot/71394/3 "2021-11-12T21:39:20Z")

</div>

Oh great!  
Thanks for the pointer!  
I’ll try these things and add an update here.
