Files
vercel__next.js/errors/next-config-error.mdx
Jam Balaya 6f4352993d docs: add and unify notes to error pages (#72838)
## Description
Unify the note format according to the [contribution
guide](https://nextjs.org/docs/community/contribution-guide#notes).
In addition, add missing bullet points to useful links.

### Improving Documentation

- [x] Run `pnpm prettier-fix` to fix formatting issues before opening
the PR.
- [x] Read the Docs Contribution Guide to ensure your contribution
follows the docs guidelines:
https://nextjs.org/docs/community/contribution-guide

---------

Co-authored-by: Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com>
2024-11-19 09:44:42 +00:00

19 lines
666 B
Plaintext

---
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/config/next-config-js)
- [Node.js version feature chart](https://node.green/)