Skip to content

Commit

Permalink
Add additional reason for the Prerender Error when running next export (
Browse files Browse the repository at this point in the history
#24828)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
frontendtony and kodiakhq[bot] authored May 6, 2021
1 parent 81cc1c5 commit 467ec21
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions errors/prerender-error.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ While prerendering a page an error occurred. This can occur for many reasons fro
- Check for any code that assumes a prop is available even when it might not be. e.g., have default data for all dynamic pages' props.
- Check for any out of date modules that you might be relying on
- Make sure your component handles `fallback` if it is enabled in `getStaticPaths`. [Fallback docs](https://nextjs.org/docs/basic-features/data-fetching#the-fallback-key-required)
- Make sure you are not trying to export (`next export`) pages that have server-side rendering enabled [(getServerSideProps)](https://nextjs.org/docs/basic-features/data-fetching#getserversideprops-server-side-rendering)

0 comments on commit 467ec21

Please sign in to comment.