When attempting to build Electron.js with Next.js, I keep encountering this persistent error. I have updated my packages and reinstalled node modules multiple times, but I am still unable to resolve it.
C:\Users\Himanshu\Desktop\claros\node_modules\minizlib\index.js:192
[_superWrite] (data) {
^
TypeError: Class extends value #<Object> is not a constructor or null
at Object.<anonymous> (C:\Users\Himanshu\Desktop\claros\node_modules\minizlib\index.js:192:4)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Function.Module._load (node:internal/modules/cjs/loader:960:12)
at Module.require (node:internal/modules/cjs/loader:1143:19)
at require (node:internal/modules/cjs/helpers:119:18)
at Object.<anonymous> (C:\Users\Himanshu\Desktop\claros\node_modules\app-builder-lib\node_modules\tar\lib\pack.js:26:14)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Function.Module._load (node:internal/modules/cjs/loader:960:12)
at Module.require (node:internal/modules/cjs/loader:1143:19)
at require (node:internal/modules/cjs/helpers:119:18)
at Object.<anonymous> (C:\Users\Himanshu\Desktop\claros\node_modules\app-builder-lib\node_modules\tar\lib\create.js:6:14)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
I have attempted to update and modify the dependencies version, as well as uninstalling and reinstalling the node_modules. I even tried changing the node version, but the issue persists.