Skip to content
Back

[SOLVED] Typescript react-native-appwrite sdk

  • 1
  • General
c911
10 Apr, 2024, 15:06

Could not find a declaration file for module 'react-native-appwrite'. '/Users/albertorg/Documents/Projects/Personal/Eson/eson/node_modules/react-native-appwrite/dist/cjs/sdk.js' implicitly has an 'any' type. Try npm i --save-dev @types/react-native-appwrite if it exists or add a new declaration (.d.ts) file containing declare module 'react-native-appwrite';

TL;DR
Developers had issues with Typescript react-native-appwrite sdk but the problem was solved by running `yarn run build` in the react-native-appwrite directory. There was mention of a fix coming soon and they could try generating files by running `npm run build` in the react-native folder. Installation method with `npx expo install` was also discussed.
c911
10 Apr, 2024, 15:41

any solution for this?

Evdog
10 Apr, 2024, 17:58

How did you install it?

c911
10 Apr, 2024, 18:35

npx expo install react-native-appwrite react-native-url-polyfill

c911
10 Apr, 2024, 18:36

Im using yarn

Steven
10 Apr, 2024, 22:58

Hmm they might be missing but we have an update coming out soon that should have it. You could try to generate them by going into that react-native-folder and running npm run build

c911
11 Apr, 2024, 06:44

That worked for me, thank you very much

c911
11 Apr, 2024, 06:45

[SOLVED] Typescript react-native-appwrite sdk

DilshanFdo
20 Apr, 2024, 05:04

im still having this problem can anyone give me a solution for this ?

DilshanFdo
20 Apr, 2024, 05:25

Thank you so much for this replay I solved this problem with the help of the declare module

Problem solved and all work perfectly.

Jasper
5 May, 2024, 15:28

Is there a known fix date for this?

Jasper
5 May, 2024, 15:28

Going into node_modules/react-native-appwrite and running yarn run build does fix it, but is hacky 🤣

Steven
5 May, 2024, 16:03

Did you try with version 0.3.0?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more