thirdweb-example / expo-starter

Starter kit to build with Expo and thirdweb without additional initial configuration.
19 stars 7 forks source link

Thirdweb Expo Starter crashes in Development Mode #16

Closed avantmarketing1 closed 1 month ago

avantmarketing1 commented 1 month ago

The Expo starter package works fine in Development mode, but crashes in Production mode on Android.

I've tested it with packages uploaded to the Google Play Store and by using: npx expo start --no-dev --minify npx expo run:android

It happens with my custom Thirdweb integration and with the vanilla Expo Starter installed using: npx thirdweb create --template expo-starter

The crashlytics report doesn't pinpoint the error but shows:

Fatal Exception: com.facebook.react.common.JavascriptException Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined.

Other people in the discord forum are having the same issue.

My app is ready for production and works development mode, but is unusable in Production because of the Thirdweb integration.

avantmarketing1 commented 1 month ago

I deleted the node modules and updated the dependancies, which solved the issue.