Обновление NextJs до 11
npm i next@latest react@latest react-dom@latest
Puzzled Porpoise
npm i next@latest react@latest react-dom@latest