create-next-pwa icon indicating copy to clipboard operation
create-next-pwa copied to clipboard

next.config.js, [WebpackGenerateSW] 'pwa' property is not expected to be here.

Open peteristhegreat opened this issue 3 years ago • 0 comments

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
  });

peteristhegreat avatar Sep 20 '22 22:09 peteristhegreat