Download next.js/errors/cant-override-next-props.mdx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 536 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/errors/cant-override-next-props.mdx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/errors/cant-override-next-props.mdx
-
curl -L -o cant-override-next-props.mdx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/errors/cant-override-next-props.mdx
536 Bytes
| title: Can't Override Next Props | |
| ## Why This Error Occurred | |
| In your `pages/_app.js` you returned an object from `getInitialProps` that contained a `router` or `Component` value. These property names are used by Next.js and can not be overwritten. | |
| ## Possible Ways to Fix It | |
| Look in your \_app.js component's `getInitialProps` function and make sure neither of these property names are present in the object returned. | |
| ## Useful Links | |
| - [The issue this was reported in: #6480](https://github.com/vercel/next.js/issues/6480) | |