The initial status argument for Prerender must be a natural number.
Answered
Sphynx posted this in #help-forum
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.
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