Skip to main content

版本 10

版本 9 和版本 10 之间没有重大变化。

¥There were no breaking changes between versions 9 and 10.

要升级到版本 10,请运行以下命令:

¥To upgrade to version 10, run the following command:

npm i next@10
yarn add next@10
pnpm up next@10
bun add next@10

很高兴知道:如果你使用的是 TypeScript,请确保还将 @types/react@types/react-dom 升级到相应的版本。

¥Good to know: If you are using TypeScript, ensure you also upgrade @types/react and @types/react-dom to their corresponding versions.