e1502bc9a5
* Enable webpack 5 by default for all apps Still provides a way to opt-out using `webpack5: false` in next.config.js. Also throws an error for `future.webpack5`. * Update tests * Update test to run on webpack 4 instead of webpack 5 * disable webpack5 for legacy tests * Fix stats-config for webpack4 * update tests * update size for webpack4 test * move basic suite first * update basic test * Add logs * remove outdated testFutureDependencies job Co-authored-by: JJ Kasper <jj@jjsweb.site>
630 B
630 B
future.webpack5
has been moved to webpack5
Why This Error Occurred
The future.webpack5
option has been moved to webpack5
in next.config.js
.
Possible Ways to Fix It
If you had the value true
you can removed the option as webpack 5 is now the default for all Next.js apps unless opted out.
If you had he value false
you can update next.config.js
:
Change future.webpack5
to webpack5
.
Current next.config.js
:
// next.config.js
module.exports = {
future: {
webpack5: false,
},
}
Updated next.config.js
:
// next.config.js
module.exports = {
webpack5: false,
}