Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible Unhandled Promise Rejection (id:0) #24

Closed
vitorcalvi opened this issue Sep 13, 2022 · 1 comment
Closed

Possible Unhandled Promise Rejection (id:0) #24

vitorcalvi opened this issue Sep 13, 2022 · 1 comment

Comments

@vitorcalvi
Copy link

When try to change the UI > Language > Sysytem ----> English
in Expo run:ios -d (Device Xxxx)
It doesn't work, just in IOS Simulator

[Unhandled promise rejection: Error: You cannot use the Updates module in development mode in a production app. To test manual updates, make a release build with npm run ios --configuration Release or npm run android --variant Release.]
at http://192.168.1.13:8081/index.bundle?platform=ios&dev=true&hot=false&strict=false&minify=false:102793:321 in _createSuperInternal
at node_modules/expo-modules-core/build/errors/CodedError.js:10:8 in constructor
at http://192.168.1.13:8081/index.bundle?platform=ios&dev=true&hot=false&strict=false&minify=false:233273:49 in reloadAsync$
at node_modules/expo-updates/build/Updates.js:88:7 in reloadAsync
at src/services/navigation/index.ts:40:12 in Nav#restart
at src/services/navigation/index.ts:40:12 in Nav#restart
at src/stores/ui.ts:39:9 in UIStore#setLanguage
at node_modules/mobx/dist/mobx.esm.js:1255:11 in executeAction
at node_modules/mobx/dist/mobx.esm.js:1239:24 in res
at src/screens/settings.tsx:51:53 in
at node_modules/react-native-ui-lib/src/components/actionSheet/index.js:125:4 in ActionSheet#onOptionPress

@kanzitelli
Copy link
Owner

kanzitelli commented Sep 14, 2022

@vitorcalvi i believe it’s related to reloadAsync method from expo-updates module that is not working on simulator. not 100% sure as didn’t test it for a long time, but looking at the error text tells me that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants