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
- Paused project can't activate
I have failed to reactivate one my projects which had been paused
- Site deployment keeps getting failed
Hi good folks, need a hand with Sites deploy Error on every deploy: Synchronous function execution timed out... duration doesn't exceed 30 seconds [exact log ...
- Unknown attribute type: varchar / text
Since the `string` type is deprecated I tried using `varchar` and `text` in some newer tables, but when running `appwrite pull tables && appwrite types ./src/li...