Next.js Discord

Discord Forum

Error: > Build failed because of webpack errors

Unanswered
Pachon Navarro posted this in #help-forum
Open in Discord
Pachon NavarroOP
webpack: "4.46.0"
Node: 14.21.3
nextjs: 11.1.4


I am trying to migrate from next v9 to next v11 and there is error occurring while building project. can anyone help me to get perfect version of Webpack?

My ultimate goal is to implement wallet connection to my dapp but because of this error can't able to run project and it gives me same error.

1 Reply

Pachon NavarroOP
at index.js
at async Span.traceAsyncFn
at async Object.build [as default]

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! decentraweb@0.1.0 build: next build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the decentraweb@0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/nikunjrohit/.npm/_logs/2023-08-25T09_44_37_881Z-debug.log

there are some more dependencies like "react": "17.0.2", "react-dom": "17.0.2", "web3": "^0.20.7",

and I tried in webpack5 also but it didn't work out.

"The main reason for migration is to add wallet connect configuration.
@walletConnect/web3provider is deprecated =>
@walletConnect/EthereumProvider "