baryon / baryon/markdown-live-preview

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

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
9
Forks
2
PR merge metrics
No merged PRs in 30d

Description

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

**Environment**
- Operating System: Void
KDE Plasma Version: 6.7.3
KDE Frameworks Version: 6.28.0
Qt Version: 6.11.1
Kernel Version: 7.1.6_1 (64-bit)
Graphics Platform: Wayland
- VSCode: 1.127.0
- Markdown Preview Enhanced: 0.8.30

**To Reproduce**
Steps to reproduce the behavior:
1. double click the md file from the explorer

**Expected behavior**
A rendered md file

**Markdown file**
Any md file

**Screenshots**
Image

**Additional context**

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the failure in VSCode 1.127.0 on the reported KDE/Wayland environment, opening any .md file from the explorer. Trace the webview's service-worker registration and inspect the related TypeScript entry point; done means the Markdown preview renders without the InvalidStateError.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.