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
- Invalid document structure: missing requ...
I just pick up my code that's working a week ago, and now I got this error: ``` code: 400, type: 'document_invalid_structure', response: { message: 'Inv...
- custom domain with CloudFlare
Hi all, it seems that CloudFlare has blocked cross-domain CNAME link which made my app hostname which is in CloudFlare, unable to create a CNAME pointing to clo...
- Custom emails
What happen if I use a third party email provider to customize my emails and my plan run out of emails/month? Appwrite emails are used as fallback sending emai...