Created
December 16, 2019 06:15
-
-
Save CodingPapi/57f0c2428a181dc35ae74bdbb8641dbc to your computer and use it in GitHub Desktop.
var "global" conflect, type/node and react-native
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A solution that works for me is to define the types that my project is using in tsconfig.json leaving out the node typing’s like this: | |
"types": [ | |
"mathjs", | |
"react", | |
"react-native", | |
"react-native-drawer", | |
"react-native-orientation", | |
"react-navigation", | |
"jest" | |
], | |
This eliminates the conflict even though node.d.ts is in node_modules @types. | |
… |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
DefinitelyTyped/DefinitelyTyped#15960