ethereum-boilerplate / ethereum-react-native-boilerplate

The ultimate full-stack Ethereum React Native Dapp Boilerplate which gives you maximum flexibility and speed. Feel free to fork and contribute. Although this repo is called "Ethereum Boilerplate" it works with any EVM system! Happy BUIDL!👷‍♂️
MIT License
544 stars 286 forks source link

authenticate error return ReferenceError: Can't find variable localStorage #53

Open stevangd opened 2 years ago

stevangd commented 2 years ago

AUTH_ERR

I've tried to install localstorage-polyfill, but still can't get the expected behaviour.

Info : package.json "react-moralis": "1.0.0" "moralis": "^1.1.1" "react-native": "~0.63.3" "react": "~17.0.2" "react-dom": "^17.0.2"

image image

nftbigdev commented 2 years ago

https://forum.mhttps://forum.moralis.io/t/local-storage-error-on-login-in-react-native/7545oralis.io/t/local-storage-error-on-login-in-react-native/7545

alexnguyennz commented 2 years ago

You are using newer Moralis and react-moralis versions compared to the boilerplate, this may be the cause.

"moralis": "0.0.99",
"react-moralis": "0.2.7",
gregshen0925 commented 2 years ago

I use these dependencies but I still got this error, how should i should it. My dependencies:

"moralis": "0.0.99",
"react-moralis": "0.2.7",
alexnguyennz commented 2 years ago

Can you try using another device? Otherwise try again with a fresh boilerplate clone. I am not able to replicate this error.