microsoft/TypeScript-React-Native-Starter

Example project not compiling properly

volgar1x opened this issue · 1 comments

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.

Should set

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