Skip to content

Instantly share code, notes, and snippets.

@siassaj
Last active May 31, 2019 07:01
Show Gist options
  • Save siassaj/c9f63d2bdfbf9801ef3cfefc29accfe8 to your computer and use it in GitHub Desktop.
Save siassaj/c9f63d2bdfbf9801ef3cfefc29accfe8 to your computer and use it in GitHub Desktop.
$ yarn run tsc
yarn run v1.12.3
$ /home/quazi/Filing/app/node_modules/.bin/tsc
error TS2688: Cannot find type definition file for 'react-native'.
Found 1 error.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
},
"devDependencies": {
"@types/react": "^16.8.19",
"@types/react-dom": "^16.8.4",
"ts-loader": "^6.0.2",
"tsc": "^1.20150623.0",
"tslint": "^5.17.0",
"tslint-react": "^4.0.0",
"typescript": "^3.5.1",
"webpack": "^4.32.2",
"webpack-cli": "^3.3.2"
},
"dependencies": {
"react": "^16.8.6",
"react-dom": "^16.8.6"
}
{
"compilerOptions": {
"outDir": "./dist/",
"sourceMap": true,
"module": "commonjs",
"target": "es5",
"lib": ["es5", "es6", "dom"],
"jsx": "react",
"strict": true,
"allowSyntheticDefaultImports": true
},
"include": [
"./src/**/*"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment