shadowwalker / next-pwa

Zero config PWA plugin for Next.js, with workbox 🧰
MIT License
3.71k stars 312 forks source link

Sw.js is not generated when building project #479

Open eg-delacruz opened 1 year ago

eg-delacruz commented 1 year ago

Summary

The sw.js file is not generated when building the project for production

What can I help with? Please keep this clear and concise.

Versions

How To Reproduce

Steps to reproduce the behavior:

Using the following next.config.js config:

const withPWA = require('next-pwa')({ dest: 'public', register: true, mode: 'production', skipWaiting: true, include: ['production'], });

module.exports = withPWA({ reactStrictMode: true, });

Link to minimal reproduce setup repository if any.

Expected Behaviors

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

Additional Context

Add any other context about the problem here.

karltaylor commented 1 year ago

I am also having this issue on "next": "^13.1.1"

famdude commented 11 months ago

Same problem with next 13.4 and next-pwa 5.6.0

Jawkx commented 6 months ago

Same problem with next 13.4.8 and next-pwa 5.6.0