Using webpack 4. Reason: future.webpack5 option not 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,
},
}