Snack runs on the simulator but not in a real phone


#1

Suddenly an unchanged and stable snack stopped running over the Expo app… All sorts of error messages and it still runs fine on the simulator… Any change on the Expo library or app?


#3

most frequent error message: TypeError: undefined is not an object (evaluating y.hasOwnProperty)… I have no explicit reference to y.hasOwnProperty on my code


#4

Hey @cabteix,

What version of the Expo Client do you have on your phone? If it’s not the latest, can you try updating. Regardless, pinging @thetc for some more insight.

Cheers,

Adam


#5

2.9.2 which I understand is the latest… anyway already uninstalled and installed again… no help there


#7

sometimes the error message is "TypeError: null is not an object (evaluating ‘d.NativeModulesProxy’)… the snacks is still running fine on the simulator


#8

I noticed one thing… Oddly enough it shows this error by the “;” at the end of any THIRD “import” statement line of my code!


#9

Fixed by importing Icon from “react-native-vector-icons/MaterialIcons”;

Some change on the Material library… Go figure…

Thanks anyway @adamjnav


#10

Interesting. Glad you got it fixed. Thanks for sharing the solution as well!

Cheers!