Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚀 Feature: Appwrite Sdk error in React Native #6436

Closed
2 tasks done
SMARTMICROWORLD opened this issue Oct 2, 2023 · 2 comments
Closed
2 tasks done

🚀 Feature: Appwrite Sdk error in React Native #6436

SMARTMICROWORLD opened this issue Oct 2, 2023 · 2 comments

Comments

@SMARTMICROWORLD
Copy link

🔖 Feature description

When I use Appwrite Sdk in React Native it throws error like:
error: Error: Unable to resolve module os from ..\node_modules\node-appwrite\lib\client.js: os could not be found within the project or in these directories:
node_modules\node-appwrite\node_modules
node_modules

1 | const os = require('os');
^

🎤 Pitch

Because there are so much developers in react native and incompability of appwrite with react native makes it not worty for app dev.

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

@ItzNotABug
Copy link
Contributor

I think this is happening due to os module from node not being compatible or supported with react.

An alternative for os does exist for react though but I'm not sure how this will be fixed by the team.

@stnguyen90
Copy link
Contributor

@SMARTMICROWORLD you should not be using the node-appwrite package in a react native app because it is a server SDK. For more information between our client vs server SDKs, see https://appwrite.io/docs/sdks.

@stnguyen90 stnguyen90 closed this as not planned Won't fix, can't repro, duplicate, stale Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants