Using webpack 5. Reason: future.webpack5 option enabled https://nextjs.org/docs/messages/webpack5 code example
Example: Using webpack 5. Reason: future.webpack5 option enabled https://nextjs.org/docs/messages/webpack5
module.exports = {
future: {
webpack5: true,
},
}