Skip to content

Service Worker not defined while accessing PWA in development #3834

Closed
@GirlBossRush

Description

@GirlBossRush

As first reported in a PR by @cuining, this regression seems to be introduced in the move away from Parcel.

I believe this may be addressed in #3833, but some more information is still needed.

OS/Web Information

  • Web Browser: Chrome
  • Local OS: macOS
  • Remote OS: macOS
  • Remote Architecture: 64 bit
  • code-server --version: 3.11.0

Steps to Reproduce

  1. Start code-server via yarn watch
  2. Open in Chrome, add a PWA shortcut
  3. Refresh

Expected

No console errors should occur.

Actual

Service worker registration fails due to an invalid path. However, the file is available at an different path.

Screenshot

Screen Shot 2021-07-21 at 14 40 39

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghigh-priorityThis issue needs to be resolved ASAP

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions