主题
版本 10
¥Version 10
版本 9 和版本 10 之间没有重大变化。
¥There were no breaking changes between versions 9 and 10.
要升级到版本 10,请运行以下命令:
¥To upgrade to version 10, run the following command:
bash
npm i next@10bash
yarn add next@10bash
pnpm up next@10bash
bun add next@10需要了解:如果你使用的是 TypeScript,请确保还将
@types/react和@types/react-dom升级到相应的版本。¥Good to know: If you are using TypeScript, ensure you also upgrade
@types/reactand@types/react-domto their corresponding versions.