create-next-pwa
create-next-pwa copied to clipboard
next.config.js, [WebpackGenerateSW] 'pwa' property is not expected to be here.
error - Please check your GenerateSW plugin configuration:
[WebpackGenerateSW] 'pwa' property is not expected to be here.
Found a solution here:
https://github.com/shadowwalker/next-pwa/issues/392
I changed my next.config.js to this to get the error to go away:
const withPWA = require('next-pwa')({
dest: 'public',
register: true,
skipWaiting: true
})
module.exports = withPWA({
reactStrictMode: true,
// put other next js options here
});