版本 14
從 13 升級到 14
要更新到 Next.js 版本 14,請使用您慣用的套件管理器執行以下指令
終端機
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
注意事項:如果您使用 TypeScript,請確保也將
@types/react
和@types/react-dom
更新至最新版本。
v14 摘要
這有幫助嗎?