React typescript typings not working
I figured out the issue finally.
I went on to install types once via tsd and then typings that led to duplicate typings.
Deleted the @types folder to resolve my issue.
Just in case anyone else stumbles into this, I also got this error when there was a mismatch between my @types/react
and @types/react-dom
packages. I ended up just deleting the @types/react
entry in my package.json
since it's automatically included by @types/react-dom
.