Skip to content

Error loading webview #163

@kevinramharak

Description

@kevinramharak

Describe the bug
While debugging, I ran into the following error caused by trying to load the webview pretty-ts-errors uses to show the prettified errors in a new tab and the panel:

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

Restarting VS Code seemed to work, reloading the window did not.

It is most likely related to the WebviewPanelSerializer and WebviewViewResolveContext API's that try to persist the webview between sessions.

Expected behavior
The webview should load without any issues.

Screenshots

Image

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions