Next.js Discord

Discord Forum

The initial status argument for Prerender must be a natural number.

Answered
Sphynx posted this in #help-forum
Open in Discord
SphynxOP
Hello guys im deploying my next js app in Vercel, when I run the build command this error is thrown and I don't know where it is coming from please help me : Error: The initial status argument for Prerender must be a natural number.
Answered by Sphynx
I have solved the error the problem is that in my server code i was using NextResponse correctly but its the one that was causing the issue I have revolted back to the old Response object. Anyway, Thank you for the concerns.
View full answer

2 Replies

thats an odd error. Do you have reproducible repository?
@alfon thats an odd error. Do you have reproducible repository?
SphynxOP
I have solved the error the problem is that in my server code i was using NextResponse correctly but its the one that was causing the issue I have revolted back to the old Response object. Anyway, Thank you for the concerns.
Answer