TypeError: null is not an object (evaluating '_ExpoRandom.default.getRandomBytes')

Im use expo-auth-session/providers/google with expo dev client

monorepo

expo sdk 44

run expo install expo-auth-session expo-random expo-web-browser

open app crash show

TypeError: null is not an object (evaluating ‘_ExpoRandom.default.getRandomBytes’)

im use * See the guide for more info on usage: Google Authentication.

Don’t know if this is the case for you here, but I got very similar errors whenever I added expo modules that use native code. These errors are opaque – the way around them is to rebuild your dev-client. I would suggest building new clients and seeing if this fixes things.

1 Like

semicolonberlin_stag thx you.

Im use $ expo install expo-random but forget import expo-random in dependencies with package.json project in monorepo.

This makes the lib unable to link.