Back to Next Js

It looks like the next instance is being instantiated incorrectly.

errors/invalid-server-options.mdx

16.2.5825 B
Original Source

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
const app = next()

And make sure you're passing dev as shown in the examples below:

js
const app = next({ dev: boolean })