My app works perfectly in development, but after I run expo build (expo build:android -t app-bundle
) and release it in testing the app crashes on the first screen.
Trying to figure our where the problem is.
On bugsnag, I get a TypeErrors, with logs like this:
TypeError undefined is not a function (near '...(0,C.useEffect)...')
/data/user/0/com.echoapp.echo/files/.expo-internal/bundle-B4308023D2787383BBEDC729852168EB8B4E1C69DEFD891972CB814E29294AB2:1612:1220 T
/data/user/0/com.echoapp.echo/files/.expo-internal/bundle-B4308023D2787383BBEDC729852168EB8B4E1C69DEFD891972CB814E29294AB2:100:38815 fr
/data/user/0/com.echoapp.echo/files/.expo-internal/bundle-B4308023D2787383BBEDC729852168EB8B4E1C69DEFD891972CB814E29294AB2:100:80363 Ci
/data/user/0/com.echoapp.echo/files/.expo-internal/bundle-B4308023D2787383BBEDC729852168EB8B4E1C69DEFD891972CB814E29294AB2:100:74734 Cl
/data/user/0/com.echoapp.echo/files/.expo-internal/bundle-B4308023D2787383BBEDC729852168EB8B4E1C69DEFD891972CB814E29294AB2:100:74659 Rl
/data/user/0/com.echoapp.echo/files/.expo-internal/bundle-B4308023D2787383BBEDC729852168EB8B4E1C69DEFD891972CB814E29294AB2:100:74426 Pl
/data/user/0/com.echoapp.echo/files/.expo-internal/bundle-B4308023D2787383BBEDC729852168EB8B4E1C69DEFD891972CB814E29294AB2:100:71559 Tl
[native code] Tl
/data/user/0/com.echoapp.echo/files/.expo-internal/bundle-B4308023D2787383BBEDC729852168EB8B4E1C69DEFD891972CB814E29294AB2:100:23573
/data/user/0/com.echoapp.echo/files/.expo-internal/bundle-B4308023D2787383BBEDC729852168EB8B4E1C69DEFD891972CB814E29294AB2:209:3883 unstable_runWithPriority
/data/user/0/com.echoapp.echo/files/.expo-internal/bundle-B4308023D2787383BBEDC729852168EB8B4E1C69DEFD891972CB814E29294AB2:100:23520 an
/data/user/0/com.echoapp.echo/files/.expo-internal/bundle-B4308023D2787383BBEDC729852168EB8B4E1C69DEFD891972CB814E29294AB2:100:23455 ln
/data/user/0/com.echoapp.echo/files/.expo-internal/bundle-B4308023D2787383BBEDC729852168EB8B4E1C69DEFD891972CB814E29294AB2:100:89264 xe
/data/user/0/com.echoapp.echo/files/.expo-internal/bundle-B4308023D2787383BBEDC729852168EB8B4E1C69DEFD891972CB814E29294AB2:100:12420 Se
/data/user/0/com.echoapp.echo/files/.expo-internal/bundle-B4308023D2787383BBEDC729852168EB8B4E1C69DEFD891972CB814E29294AB2:100:12809 Re
/data/user/0/com.echoapp.echo/files/.expo-internal/bundle-B4308023D2787383BBEDC729852168EB8B4E1C69DEFD891972CB814E29294AB2:100:13218 receiveEvent
/data/user/0/com.echoapp.echo/files/.expo-internal/bundle-B4308023D2787383BBEDC729852168EB8B4E1C69DEFD891972CB814E29294AB2:37:3351 value
/data/user/0/com.echoapp.echo/files/.expo-internal/bundle-B4308023D2787383BBEDC729852168EB8B4E1C69DEFD891972CB814E29294AB2:37:748
/data/user/0/com.echoapp.echo/files/.expo-internal/bundle-B4308023D2787383BBEDC729852168EB8B4E1C69DEFD891972CB814E29294AB2:37:2611 value
/data/user/0/com.echoapp.echo/files/.expo-internal/bundle-B4308023D2787383BBEDC729852168EB8B4E1C69DEFD891972CB814E29294AB2:37:720 value
[native code] value
Other than that, I also get this warning (but the app runs without any issues in development nonetheless):
Some of your project’s dependencies are not compatible with currently installed expo package version:
- expo-camera - expected version range: ~9.1.0 - actual version installed: ^10.0.0
- expo-constants - expected version range: ~9.3.3 - actual version installed: ^10.0.1
- expo-sqlite - expected version range: ~8.5.0 - actual version installed: ^9.0.0
- @react-native-picker/picker - expected version range: 1.9.2 - actual version installed: ^1.9.10
Your project may not work correctly until you install the correct versions of the packages.
To install the correct versions of these packages, please run: expo install [package-name …]
expo diagnostics
log:
Expo CLI 4.3.0 environment info:
System:
OS: Windows 10 10.0.19041
Binaries:
Node: 12.18.4 - C:\Program Files\nodejs\node.EXE
npm: 6.14.6 - C:\Program Files\nodejs\npm.CMD
IDEs:
Android Studio: Version 4.0.0.0 AI-193.6911.18.40.6626763
npmPackages:
expo: ^40.0.1 => 40.0.1
react: 16.13.1 => 16.13.1
react-dom: 16.13.1 => 16.13.1
react-native: https://github.com/expo/react-native/archive/sdk-40.0.1.tar.gz => 0.63.2
react-native-web: ^0.15.0 => 0.15.0
Expo Workflow: managed
Here’s my package.json file too:
{
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"eject": "expo eject"
},
"dependencies": {
"@bugsnag/expo": "^7.8.2",
"@react-native-community/masked-view": "0.1.10",
"@react-native-picker/picker": "^1.9.10",
"@react-navigation/native": "^5.9.2",
"@react-navigation/stack": "^5.14.2",
"expo": "^40.0.1",
"expo-av": "~8.7.0",
"expo-camera": "^10.0.0",
"expo-constants": "^10.0.1",
"expo-file-system": "~9.3.0",
"expo-image-picker": "~9.2.0",
"expo-sqlite": "^9.0.0",
"expo-status-bar": "~1.0.3",
"formik": "^2.1.4",
"native-base": "^2.15.2",
"react": "16.13.1",
"react-dom": "16.13.1",
"react-native": "https://github.com/expo/react-native/archive/sdk-40.0.1.tar.gz",
"react-native-dropdown-picker": "^3.8.0",
"react-native-gesture-handler": "~1.8.0",
"react-native-reanimated": "~1.13.0",
"react-native-safe-area-context": "3.1.9",
"react-native-screens": "~2.15.2",
"react-native-stopwatch-timer": "0.0.21",
"react-native-web": "^0.15.0",
"react-navigation-header-buttons": "^6.2.1",
"yup": "^0.32.8"
},
"devDependencies": {
"@babel/core": "~7.9.0"
},
"resolutions": {
"promise": "^8.0.3"
},
"private": true
}