Check your @types/react version, it's probably @18.x.x . Just stumbled upon the same issue, and after the npm i --force @types/[email protected] it updated everything else flawlessly.
@types/react
@18.x.x
npm i --force @types/[email protected]