Skip to content

Handle errors when loading next.config.js #79

Closed
@ehmicky

Description

@ehmicky

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugcode to address defects in shipped code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions