#Cannot read prototype of undefined

18 messages · Page 1 of 1 (latest)

grand dock
#

I am trying to start using appwrite with react-native but getting This error 'Cannot read prototype of undefined'
from Client.
After setEndpoint I am setting project ID.

feral spoke
grand dock
#

Still same error.

feral spoke
#

What's the SDK you're using?

#

Node SDK or web SDK?

grand dock
#

Node 18.17.1
appwrite sdk ^13.0.0

feral spoke
grand dock
#

Yes.

feral spoke
#

Then you should not use node, instead web SDK

grand dock
#

I didn't understand. What do you mean by I should not use node.
Node is required for react native.

feral spoke
#

There are 2 appwrite SDK:

  • Node SDK
  • Web SDK

I think you're using the first one, so use the second one for react

grand dock
#

Ohh sorry. I am using webSDK only.

wraith dock
grand dock
#

Issue can be reproduced by cloning this repo and in dev branch replace Project Endpoint and ID in loginUser function inside Login.tsx

grand dock
#

Pinging this to bring it to the top.