expo: undefined is not an object (evaluating 'u.default.Mode')
๐ Bug Report
Environment
Expo CLI 2.19.5 environment info: System: OS: macOS 10.14.5 Shell: 3.2.57 - /bin/bash Binaries: Node: 12.4.0 - /usr/local/bin/node Yarn: 1.13.0 - /usr/local/bin/yarn npm: 6.9.0 - /usr/local/bin/npm IDEs: Xcode: /undefined - /usr/bin/xcodebuild npmGlobalPackages: expo-cli: 2.19.5
Steps to Reproduce
Itโs hard to reproduce. I upgraded my huge project from expo 32 to 33. I really do not know what can cause a problem. Problem exists only on iOS. Android works like a charm.
Expected Behavior
Standalone application starts correctly.
Actual Behavior
Standalone application is not starting. In my device logs there is something like:
undefined is not an object (evaluating 'u.default.Mode')

Reproducible Demo
It is hard to reproduce it because it only happens in a production build. Application is working correctly in a development mode ( started with an Expo app )
I started using BackgroundFetch feature so I added property UIBackgroundModes to my app.json file. Do you think it could be related?
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 1
- Comments: 21 (7 by maintainers)
@brentvatne here is a stripped down example: https://github.com/kuritz/expo-test
There are 3 builds from the 3 branches. The error only occurs on the sdk 33 branch that uses face detector for me.
Hope this helps, let me know if you were looking for something else.
Hereโs my diagnostic printout:
This was fixed with an update to Home for SDK 33.
Iโve made a little investigation. I cloned expo/expo and greped for
u.default.Mode. It foundInteresting part is:
Then I looked for
Mode:and i found:So maybe there is a bug in
ExpoFaceDetectormodule? Itโs a blind shot but maybe?