rsnext/errors/next-config-error.mdx
Delba de Oliveira 44d1a1cb15
docs: Migrate error messages to MDX and App Router. (#52038)
This PR is part of a larger effort to migrate error messages to MDX and
use App Router: https://github.com/vercel/front/pull/23459
2023-07-05 06:11:16 -07:00

18 lines
655 B
Text

---
title: '`next.config.js` Loading Error'
---
## Why This Error Occurred
When attempting to load your `next.config.js` or `next.config.mjs` file, an error occurred. This could be due to a syntax error or attempting to `require`/`import` a module that wasn't available.
## Possible Ways to Fix It
See the error message in your terminal where you started `next` to see more context.
> Note: This config file is not transpiled by Next.js, so only use features supported by your current Node.js version.
## Useful Links
- [next.config.js documentation](/docs/pages/api-reference/next-config-js)
- [Node.js version feature chart](https://node.green/)