如何升級至第 10 版
第 9 版與第 10 版之間沒有重大變更。
若要升級至第 10 版,請執行以下指令:
npm i next@10
yarn add next@10
pnpm up next@10
bun add next@10
小提示: 如果您使用 TypeScript,請確保同時將
@types/react
和@types/react-dom
升級至對應版本。
第 9 版與第 10 版之間沒有重大變更。
若要升級至第 10 版,請執行以下指令:
npm i next@10
yarn add next@10
pnpm up next@10
bun add next@10
小提示: 如果您使用 TypeScript,請確保同時將
@types/react
和@types/react-dom
升級至對應版本。