excalidraw / excalidraw-vscode

Excalidraw for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=pomdtr.excalidraw-editor
MIT License
477 stars 60 forks source link

Error loading webview: Error: Could not register service workers #79

Closed hr-curtissimo closed 1 year ago

hr-curtissimo commented 1 year ago

When installing or trying to use the extension, I get the following error in a notification:

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

I have an Excalidraw document in the workspace. It is a valid document that can be opened from the Excalidraw Web site. The top-level elements have the following values:

{
  "type": "excalidraw",
  "version": 2,
  "source": "https://marketplace.visualstudio.com/items?itemName=pomdtr.excalidraw-editor",
  "elements": [...],
  "appState": {
    "gridSize": null,
    "viewBackgroundColor": "#ffffff"
  },
  "files": {}
}

Visual Studio Code information:

Version: 1.75.0
Commit: e2816fe719a4026ffa1ee0189dc89bdfdbafb164
Date: 2023-02-01T15:26:31.005Z (5 days ago)
Electron: 19.1.9
Chromium: 102.0.5005.194
Node.js: 16.14.2
V8: 10.2.154.23-electron.0
OS: Darwin arm64 22.3.0
Sandboxed: No
hr-curtissimo commented 1 year ago

Never mind. Not a you issue. Just VS Code being stoopid for all extensions. 🤷 Sorry for the noise.