Skip to content

Instantly share code, notes, and snippets.

@CodingPapi
Created December 16, 2019 06:15
Show Gist options
  • Save CodingPapi/57f0c2428a181dc35ae74bdbb8641dbc to your computer and use it in GitHub Desktop.
Save CodingPapi/57f0c2428a181dc35ae74bdbb8641dbc to your computer and use it in GitHub Desktop.
var "global" conflect, type/node and react-native
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.
@CodingPapi
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment