Skip to content

service worker script returns 404 #378

@mismosmi

Description

@mismosmi

Summary

Hi,
it seems that something has been broken in the latest release (5.5.5).
The necessary files (sw.js etc.) do not get generated in /public anymore.

Versions

  • next-pwa: 5.5.5
  • next: 12.2.2

How To Reproduce

Steps to reproduce the behavior:

  1. Go to this codesandbox
  2. wait for it to start
  3. see the error message

Link to minimal reproduce setup repository if any.
https://codesandbox.io/s/bitter-breeze-xcpdqh

Expected Behaviors

sw.js and workbox-[hash].js should be generated in public folder

Screenshots

Screenshot 2022-08-01 at 15 10 37

Additional Context

Might not get noticed until deployed if files are still in the filesystem from before the upgrade.

Best,
Michel

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions