yes the problem is with multiple versions of @types/react. We can just make sure the versions of @types/react are the same while running yarn why @types/react.
yarn why @types/react