RobinBobin / react-native-google-drive-api-wrapper

This wrapper facilitates the use of the Google Drive API in React Native projects.
110 stars 43 forks source link

"Could not find a declaration file for module 'react-native-google-drive-api-wrapper'" #6

Closed jebuth closed 5 years ago

jebuth commented 5 years ago

Cannot build after installing. npm i --save react-native-google-drive-api-wrapper react-native link react-native-fs

Try npm install @types/react-native-google-drive-api-wrapper if it exists or add a new declaration (.d.ts) file containing declare module 'react-native-google-drive-api-wrapper'; [7016]

RobinBobin commented 5 years ago

After

react-native init GDriveTest
npm i --save react-native-google-drive-api-wrapper
react-native link react-native-fs

the app builds and installs on my device just fine.

I'm afraid I'm unfamiliar with TypeScript so there's no .d.ts-file. I'm using this module in several projects and I've never had any problems related to the absence of this file.

jebuth commented 5 years ago

I'm not familiar with TypeScript either. Perhaps some other package in my project is causing this?

RobinBobin commented 5 years ago

Sounds like a very reasonable supposition to me.

jebuth commented 5 years ago

It turns out this was only a warning. I had multiple build errors and assumed this was the cause but it wasn't. The issue was with react-native-google-signin.

RobinBobin commented 5 years ago

I see. Thanks for pointing this out. I'll close the issue then, but feel free to submit any other requests.