mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
This PR: - Moves `next.config.js` options under a "config" folder which includes references for other configuration such as the ESLint plugin. I figure it would be tidier than having "Next.config.js Options" and "Config" in the API reference. - Fixes the issue with the "config" folder not showing up in canary: https://linear.app/vercel/issue/DOC-3749/bug-figure-out-why-new-config-folder-isnt-showing-up-in-the-canary - Fixes the indentation issues and missing example header (caused by an invisible character). Redirects: https://github.com/vercel/front/pull/38704
19 lines
662 B
Plaintext
19 lines
662 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/)
|