A newer version is available
What this notice means
The development overlay shows that your installed version of Next.js is not the latest available. During development, Next.js checks the npm registry and compares your installed version against the latest release. If a newer version is available, Next.js displays a notice in the overlay.
Newer versions contain bug fixes and improved error tracing capabilities. Upgrade before investigating further.
Upgrading Next.js won't fix errors that originate in your own code or third-party libraries. However, newer versions often provide better error messages and stack traces that can help you identify the root cause.
If upgrading does not resolve your issue, search GitHub Discussions to see if others have encountered the same problem. If you cannot find a match, consider creating a new discussion with details about your error.
If you believe the issue is a bug in Next.js and you have a minimal, shareable reproduction repository, open an issue on GitHub.
Good to know: A reproduction repository is required when opening an issue. Issues without one are automatically closed.
Staleness levels
- Stale (patch or minor): A newer stable release is available with bug fixes or new features.
- Stale (prerelease): You are on a canary release and a newer canary is available. Canary versions are published frequently, so this is expected.
- Outdated (major): Your installed version is behind by a major version. Upgrading is recommended to get security fixes and new features.
Upgrading
Latest stable version:
To upgrade to the latest stable release:
pnpm add next@latestTo upgrade to the latest canary release:
pnpm add next@canaryIf you are coming from an older major version, check out the upgrade guides.
Contributing
Next.js is open source and welcomes contributions. If you have identified a bug and want to fix it yourself, see the contributing guide or watch How to Contribute to Open Source (Next.js) to get started.
You can also help by triaging issues, verifying canary releases, or providing a minimal reproduction for existing issues.
Was this helpful?