
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
- [AppwriteException: Network request fail...
When I tried to list the documents from one of the collections, it would show Error: Network request failed. But if I tried others, it would show all of the doc...
- How to detect user disconnection?
I'm creating a 1v1 challenge using realtime and i want to trigger a function when the user disconnect... how to make this using Appwrite Realtime? i searched i...
- User Authentication through REST API
Hey everyone, I’m looking for some guidance on the best way to authenticate frontend requests to my API gateway using Appwrite sessions. Right now, I'm trying ...
