Skip to content

Not useful logs in vercel staging deploy #4118

Answered by styfle
aloukissas asked this question in General
Discussion options

You must be logged in to vote

Hi @aloukissas

The error message has a couple links with more details.

https://reactjs.org/docs/error-decoder.html?invariant=152&args%5B%5D=Header

Header(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.

https://err.sh/next.js/prerender-error

Why This Error Occurred

While prerendering a page an error occurred. This can occur for many reasons from adding non-pages e.g. components to your pages folder or expecting props to be populated which are not.

Possible Ways to Fix It

  • Make sure to move any non-pages out of the pages folder
  • Check for any code that assumes a prop is available even when it might not be
  • Check f…

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@aloukissas
Comment options

@styfle
Comment options

@styfle
Comment options

@aloukissas
Comment options

@styfle
Comment options

Answer selected by styfle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants