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
- SMS OTP not delivered to Australian (+61...
Hey team! I'm having an issue with SMS OTP delivery to Australian phone numbers in my Appwrite Cloud project. What's happening: account.createPhoneToken() co...
- Deploying to Sites will not work. NextJS
It’s been many times I have attempted to deploy to Appwrite and it’s always failed. The deployment itself works, the logs show it works perfectly, however when ...
- custom domain on cloudflair was verified...
I've added the credentials as instructed by the appwrite documentation, with cname set to dns only without proxy, and it successfully validated my domain, and w...