I'm running into a bit of a confusing issue where it seems that TypeScript is installing its own copy of React into it's own global cache (not sure what its called? assuming thats what it is) and referencing it in my project.
Specifically I end up with two references to React one that is located in the root of my project
C:\MyProject\node_modules\@types\react
and then another reference in
C:\Users\MyUserName\AppData\Local\Microsoft\TypeScript\3.0\node_modules\@types\react
How do I control and uninstall references that end up in the TypeScript local folder? What might I be doing in my project that could be causing this secondary reference?
Here is what my tsconfig.json file looks like:
{
"compilerOptions": {
"module": "commonjs",
"moduleResolution": "node",
"target": "es5",
"sourceMap": true,
"jsx": "react",
"lib": [ "es6", "dom" ],
"removeComments": true,
"typeRoots": [
"/Types/"
]
},
"compileOnSave": false,
"exclude": [
"/node_modules/",
"/bin",
"/obj"
]
}
