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