Are you ready to upgrade your Next.js 13 app to version 14? This guide will show you how to upgrade your Next.js 13 app to version 14. Upgrading to Next.js 14 is a great way to improve the performance, scalability, and user experience of your React applications.
To update to Next.js version 14, run the following command using your preferred package manager:
npm i next@latest react@latest react-dom@latest eslint-config-next@latest
yarn add next@latest react@latest react-dom@latest eslint-config-next@latest
pnpm up next react react-dom eslint-config-next --latest
bun add next@latest react@latest react-dom@latest eslint-config-next@latest
Good to know: If you are using TypeScript, ensure you also upgrade
@types/react
and@types/react-dom
to their latest versions.
next export
command is deprecated in favor of output: 'export'
. Please see the docs for more information.next/server
import for ImageResponse
was renamed to next/og
. A codemod is available to safely and automatically rename your imports.@next/font
package has been fully removed in favor of the built-in next/font
. A codemod is available to safely and automatically rename your imports.next-swc
has been removed.Source: https://nextjs.org
#nextjs #react #reactjs