-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
Can't find variable: Promise on react-native 0.56.0-rc2 release build #19806
Comments
Got the same issue in |
same issue but with message |
Can you see if moving these two lines:
to be below the timerSetup fixes this crash? |
@TheSavior moved down under line |
Closing this in favour of #19827 since the conversation seems to be moving forward over there |
Environment
Run
react-native info
in your terminal and paste its contents here.Scanning folders for symlinks in /Users/xxx/node_modules (16ms)
React Native Environment Info:
System:
OS: macOS High Sierra 10.13.4
CPU: x64 Intel(R) Core(TM) i7-6920HQ CPU @ 2.90GHz
Memory: 25.53 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 8.11.1 - ~/.nvm/versions/node/v8.11.1/bin/node
Yarn: yarn install v0.22.0
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
Done in 31.50s. - /usr/local/bin/yarn
npm: 5.6.0 - ~/.nvm/versions/node/v8.11.1/bin/npm
Watchman: 4.7.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 11.4, macOS 10.13, tvOS 11.4, watchOS 4.3
Android SDK:
Build Tools: 23.0.1, 25.0.0, 25.0.2, 25.0.3, 26.0.1, 26.0.2, 27.0.1, 27.0.2, 27.0.3
API Levels: 23, 24, 25, 26, 27
IDEs:
Xcode: 9.4.1/9F2000 - /usr/bin/xcodebuild
npmPackages:
react: 16.3.2 => 16.3.2
react-native: 0.56.0-rc.2 => 0.56.0-rc.2
Description
Ios App crash on release configuration setup (
react-native run-ios --configuration Release
)Jun 19 14:39:49 silver xxx[10026]: *** Terminating app due to uncaught exception 'RCTFatalException: Unhandled JS Exception: Can't find variable: Promise (/Users/xxxx/Library/Developer/CoreSimulator/Devices/68A9BE18-20F4-4E67-A4F5-0BE26E9117A0/data/Containers/Bundle/Application/D4F542F8-E577-4260-96B1-65C9AD91F2D4/xxxx/main.jsbundle:820)', reason: 'Unhandled JS Exception: Can't find variable: Promise (/Users/xxxx/Librar...'
react-native run-ios
works wellReproducible Demo
react-native run-ios --configuration Release
The text was updated successfully, but these errors were encountered: