nicolaslopezj / meteor-apollo-accounts

Meteor accounts in GraphQL
MIT License
146 stars 37 forks source link

onChangeCallbacks error #87

Open Almaju opened 6 years ago

Almaju commented 6 years ago

After upgrading to Expo 27 (React Native), I get this error when either login or logout: [TypeError: undefined is not a function (evaluating 'onChangeCallbacks[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"]()')]

This is coming from client/store.js

I got it working by wrapping it in a try...catch statement for the moment.

lauyilouis commented 6 years ago

I saw this error when I using android with expo. My solution was:

  1. run npm install core-js
  2. In App.js, paste the following code: import 'core-js/es6/symbol'; import 'core-js/fn/symbol/iterator';
ujwal-setlur commented 6 years ago

This will fail on react-native 0.56.0. It will trigger this issue:

https://github.com/facebook/react-native/issues/18542