I added Infura node provider to the
Deploying to Netlify using
It works fine off my ubuntu 20.04 lts on wsl2 using localhost:3000 using
yarn start or even localhost:5000 using
yarn build, but for whatever reason, Netlify throws an error during runtime.
6:52:01 PM: ModuleNotFoundError: Module not found: Error: Can't resolve 'electron' in '/opt/build/repo/node_modules/swarm-js/node_modules/got' 6:52:01 PM: > Build error occurred 6:52:01 PM: Error: > Build failed because of webpack errors 6:52:01 PM: at /opt/build/repo/node_modules/next/dist/build/index.js:15:924 6:52:01 PM: at async Span.traceAsyncFn (/opt/build/repo/node_modules/next/dist/telemetry/trace/trace.js:6:584) 6:52:01 PM: error Command failed with exit code 1.