silverwolf-x/project / errors /empty-object-getInitialProps.mdx
silverwolf-x's picture
download
raw
748 Bytes
---
title: 'Empty Object Returned From `getInitialProps`'
---
## Why This Error Occurred
In one of your page components you added a `getInitialProps` that returned an empty object. This de-optimizes automatic static optimization. If you **meant** to do this and understand the **consequences** you can ignore this message as it is only shown in development.
## Possible Ways to Fix It
Look for any page's using `getInitialProps` that return an empty object `{}`. You might also need to update higher order components (HOCs) to only add `getInitialProps` if they are present on the passed component.
## Useful Links
- [Automatic Static Optimization Documentation](/docs/pages/building-your-application/rendering/automatic-static-optimization)

Xet Storage Details

Size:
748 Bytes
·
Xet hash:
1f666ad59ea90e72e2ca782995911e85f5ef5ecf2dd763a4e7abc303368d8f40

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.