microsoft / TypeScript-React-Native-Starter

A starter template for TypeScript and React Native with a detailed README describing how to use the two together.
MIT License
1.91k stars 210 forks source link

Example project not compiling properly #39

Closed volgar1x closed 4 years ago

volgar1x commented 6 years ago

Steps to reproduce

$ git clone https://github.com/Microsoft/TypeScript-React-Native-Starter
$ git checkout 3fc367a1ab877316ed2dd3001e113ddc2080930e
$ yarn install
$ tsc -p tsconfig.json --outDir build

Result

node_modules/@types/react-native/index.d.ts(3415,42): error TS2304: Cannot find name 'Map'.
node_modules/@types/react-native/index.d.ts(3428,42): error TS2304: Cannot find name 'Map'.
node_modules/@types/react-native/index.d.ts(8685,18): error TS2717: Subsequent property declarations must have the same type.  Property 'geolocation' must be of type 'Geolocation', but here has type 'GeolocationStatic'.

Expected Result

To compile properly.

DimitryDushkin commented 6 years ago

Should set

"skipLibCheck": true,
"target": "es2015",  
"module": "es2015",