Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

Could not find a declaration file for module 'react-native-foo-package'

$
0
0

while I added any component to my pure react-native project, the application screen turns to the white empty page.The import 'react-native-foo-package' line has '...' near the package name, and it has this message:

[ts] not find a declaration file for module 'react-native-foo-package'. '/project/node_modules/'react-native-foo-package'/index.js' implicitly has an 'any' type. Try npm install @types/'react-native-foo-package' if it exists or add a new declaration (.d.ts) file containing declare module 'react-native-foo-package';

npm install @types/'react-native-foo-package' couldn't help, because this package doesn't exist in npm.I don't use any typescript file or related code to typescript.

react: "16.6.0-alpha.8af6728"

react-native: "0.57.4"


Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>