shadowwalker / next-pwa

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

Encounter with lint error during build when include withPWA in next.config.js #461

Open riyastir opened 1 year ago

riyastir commented 1 year ago

Summary

When i configure next.config.js with withPWA option the build returns eslint errors. with out withPWA the build is successful as well

Versions

How To Reproduce

Steps to reproduce the behavior:

next.config.js

`const withPWA = require('next-pwa')({ dest: 'public', disable: process.env.NODE_ENV === 'development', register: true, eslint: { ignoreDuringBuilds: true, }, })

module.exports = withPWA( { eslint: { ignoreDuringBuilds: true, } })`

Expected Behaviors

IgnoreLintError and Successful build