Seems like there is a bug in the current @types/react version (specifically v18.0.2), you can downgrade to 18.0.1 with npm install --save-dev @types/react@18.0.1
Source: https://github.com/vercel/next.js/issues/36085
Seems like there is a bug in the current @types/react version (specifically v18.0.2), you can downgrade to 18.0.1 with npm install --save-dev @types/react@18.0.1
Source: https://github.com/vercel/next.js/issues/36085