The next.config.js code below was working fine before adding next-pwa. But after the next-pwa integration, i started getting "Module not found" errors.
ERROR
error - ./node_modules/jest-worker/build/workers/ChildProcessWorker.js:9:0
Module not found: Can't resolve 'child_process'
@HasanBihan It seems this repo is dead and the maintainer cannot be contacted for so long now. I've made an immediate response by resurrecting this repo ImBIOS/next-pwa.
Summary
The next.config.js code below was working fine before adding next-pwa. But after the next-pwa integration, i started getting "Module not found" errors.
ERROR
error - ./node_modules/jest-worker/build/workers/ChildProcessWorker.js:9:0 Module not found: Can't resolve 'child_process'
Import trace for requested module: ./node_modules/jest-worker/build/WorkerPool.js ./node_modules/jest-worker/build/index.js ./node_modules/terser-webpack-plugin/dist/index.js ./node_modules/next-pwa/build-custom-worker.js ./node_modules/next-pwa/index.js ./next.config.js ./store/WorkoutStore.js ./context/MyStudio/MyStudioContext.js ./context/Provider.js ./pages/_app.js
https://nextjs.org/docs/messages/module-not-found
NEXT.CONFIG.JS
Versions
"next": "^12.1.0", "next-pwa": "^5.6.0",