mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
44d1a1cb15
This PR is part of a larger effort to migrate error messages to MDX and use App Router: https://github.com/vercel/front/pull/23459
16 lines
536 B
Plaintext
16 lines
536 B
Plaintext
---
|
|
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)
|