Closed
Description
There are many reasons why loading next.config.js
might fail such as:
- Invalid configuration value (example)
- Syntax error (example)
- General error in the JavaScript logic, throwing an exception (example)
Those errors are currently reported as plugin bugs. We should report those as user errors instead by adding a try
/catch
+ utils.build.failBuild()
block.