
I did:
npx create-react-app my-app --template typescript
npm i node-appwrite
I wrote this simple test in src/appwrite.test.ts
import { ID } from "node-appwrite";
describe("Test", () => {
test("create new entry", async () => {
ID.unique()
});
});
And I get the error:
Cannot find module 'node-fetch-native-with-agent/agent' from 'node_modules/node-appwrite/dist/client.js'
Require stack:
node_modules/node-appwrite/dist/client.js
node_modules/node-appwrite/dist/index.js
src/appwrite.test.ts
So I did:
npm i node-fetch-native-with-agent
npm i
But the error is still there.

There is a react native SDK. WHy do you want to use the node one in react?

But React native SDK is in beta stage since April 2024. When it would be in full prod-usage? any idea?

It should be fine if using it in production. Just spect that some things will not behave as expected

But most things should be fine

If you still prefer using another SDK, you can choose using the web SDK

Yes

So does that solve your issue?

Its @Lauriane issue, not mine.
Recommended threads
- Unable to read session cookie
Hi, when I am hitting Appwrite **/account** API. I am getting the user account details as expected in the response. However, with that API, Appwrite also adds a...
- Database error
My code: await databases.createDocument( process.env.APPWRITE_DATABASE, process.env.APPWRITE_COLLECTION_USER, data.userId, ...
- Verifying Appwrite into React Native pro...
Hello devs, as I start to develop React native applications, I am recommended Appwrite to establish database. In the add platform section, I am asked to clone s...
