Webpack Error when deploying the next project

When I am trying to deploy my next js website,netlify robot says to update the next js version.So I have updated the next version. After that now robot says that,webpack error.What can I do to solve it now?

Hi there, @EuroWeb5Com :wave:

Welcome to the Netlify Forums :netliconfetti: Sorry to hear you are encountering an obstacle. Can you please share your Netlify site name as well as your most recent build log?