2023-07-05 15:11:16 +02:00
---
title: Can't Override Next Props
---
2019-03-01 18:08:27 +01:00
2023-07-05 15:11:16 +02:00
## Why This Error Occurred
2019-03-01 18:08:27 +01:00
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.
2023-07-05 15:11:16 +02:00
## Possible Ways to Fix It
2019-03-01 18:08:27 +01:00
2019-05-29 13:57:26 +02:00
Look in your \_app.js component's `getInitialProps` function and make sure neither of these property names are present in the object returned.
2019-03-01 18:08:27 +01:00
2023-07-05 15:11:16 +02:00
## Useful Links
2019-03-01 18:08:27 +01:00
2020-05-27 23:51:11 +02:00
- [The issue this was reported in: #6480](https://github.com/vercel/next.js/issues/6480)