silverwolf-x/project / errors /invalid-server-options.mdx
silverwolf-x's picture
download
raw
909 Bytes
---
title: It looks like the next instance is being instantiated incorrectly.
---
## Why This Error Occurred
You have passed a null or undefined parameter to the `next()` call.
## Possible Ways to Fix It
Make sure you are passing the variables properly:
```js filename="server.js"
const app = next()
```
And make sure you're passing dev as shown in the examples below:
```js filename="server.js"
const app = next({ dev: boolean })
```
## Useful Links
- [custom-server-express](https://github.com/vercel/next.js/blob/6ca00bfe312c8d3fc5c20d25a9cd8d2741a29332/examples/custom-server-express/server.js#L6)
- [custom-server](https://github.com/vercel/next.js/blob/6ca00bfe312c8d3fc5c20d25a9cd8d2741a29332/examples/custom-server/server.js#L6)
- [custom-server-typescript](https://github.com/vercel/next.js/blob/6ca00bfe312c8d3fc5c20d25a9cd8d2741a29332/examples/custom-server-typescript/server/index.ts#L7)

Xet Storage Details

Size:
909 Bytes
·
Xet hash:
70e5dac8334d4d4be62920526b2d7cc1315c7ddcf6478076ceab82b74afa32f1

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.