Closed simonccarter closed 6 years ago
Closing. Stupidly managed to install @types/react in an ancestor folder.
I actually also stupidly managed to have a node_modules like three directories above my project directory, and sure enough, it found it! Darn!
@simonccarter great that you posted this. Somehow it happened to me as well 😅
Followed the instructions on the main README.md. Have not edited/altered the project after installation.
I get the following error after running
npm run start
:I have also followed the instructions here:
https://basarat.gitbooks.io/typescript/docs/errors/main.html#interface-elementclass-cannot-simultaneously-extend-types-component-and-component
I've also, using
nvm
, uninstalled my node version (10.1.0
), switching to a new version (8.9.4
), incase there was a different version of the@type/react
polluting my global modules.If I run
npm list | less
, the only entries with@types/react
are:so I can't see a conflict.