Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

worker.ts with next-pwa does not create sw.js #500

Open
vporton opened this issue Nov 29, 2023 · 0 comments
Open

worker.ts with next-pwa does not create sw.js #500

vporton opened this issue Nov 29, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@vporton
Copy link

vporton commented Nov 29, 2023

Summary

It's also automatically injected into sw.js generated.

from https://github.com/shadowwalker/next-pwa/tree/master/examples/custom-ts-worker

After npm run build the search find -name sw.js does not finds nothing. So sw.js isn't generated.

My project:
https://github.com/vporton/carbon-flow_colony/tree/86c1013c88f7608a6c6484cb911cf1ef6ba10c9b

Versions

  • next-pwa: 5.6.0
  • next:14.0.3

How To Reproduce

Steps to reproduce the behavior:

  1. Download my project
  2. npm i
  3. npm run build
  4. find -name sw.js
  5. The file is not found.

Expected Behaviors

Create sw.js file, because it is so documented.

Additional Context

If sw.js should not be generated, update your docs at
https://github.com/shadowwalker/next-pwa/tree/master/examples/custom-ts-worker

@vporton vporton added the bug Something isn't working label Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant