mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
6f4352993d
## 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>
19 lines
666 B
Plaintext
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/)
|