60488e68e3
* Fix broken links for Data Fetching * Fix link data fetching doc * Improve link file paths * Update errors/large-page-data.md Co-authored-by: Steven <steven@ceriously.com> * Update links * Fix linting * Lint tests * Lint tests Co-authored-by: Steven <steven@ceriously.com> Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
977 B
977 B
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
- Set default values for all dynamic pages' props (avoid
undefined
, usenull
instead so it can be serialized) - Check for any out of date modules that you might be relying on
- Make sure your component handles
fallback
if it is enabled ingetStaticPaths
. Fallback docs - Make sure you are not trying to export (
next export
) pages that have server-side rendering enabled (getServerSideProps)