2023-07-05 15:11:16 +02:00
---
title: '`next.config.js` Loading Error'
---
2021-08-14 15:52:18 +02:00
2023-07-05 15:11:16 +02:00
## Why This Error Occurred
2021-08-14 15:52:18 +02:00
2021-10-22 01:04:40 +02:00
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.
2021-08-14 15:52:18 +02:00
2023-07-05 15:11:16 +02:00
## Possible Ways to Fix It
2021-08-14 15:52:18 +02:00
2021-10-22 01:04:40 +02:00
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.
2021-08-14 15:52:18 +02:00
2023-07-05 15:11:16 +02:00
## Useful Links
2021-08-14 15:52:18 +02:00
2023-07-05 15:11:16 +02:00
- [next.config.js documentation](/docs/pages/api-reference/next-config-js)
2021-10-22 01:04:40 +02:00
- [Node.js version feature chart](https://node.green/)