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

Can't find variable: Promise on react-native 0.56.0-rc2 release build #19806

Closed
3 tasks done
francisco-sanchez-molina opened this issue Jun 19, 2018 · 5 comments
Closed
3 tasks done
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@francisco-sanchez-molina
Copy link

francisco-sanchez-molina commented Jun 19, 2018

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 well

Reproducible Demo

react-native run-ios --configuration Release

@viniychuk
Copy link

Got the same issue in react-native 0.56.0-rc2, but my error is with "fetch" variable. Update to the node 10.4.1. didn't help. Debug configuration works fine, but Release doesn't.

@eshikerya
Copy link

same issue but with message Unhandled JS Exception: Can't find variable: regeneratorRuntime

@elicwhite
Copy link
Member

Can you see if moving these two lines:

const ReactNativeVersionCheck = require('ReactNativeVersionCheck');
ReactNativeVersionCheck.checkVersions();

in InitializeCore

to be below the timerSetup fixes this crash?

@eshikerya
Copy link

@TheSavior moved down under line defineLazyTimer('cancelIdleCallback');still got same issue:
Unhandled JS Exception: Can't find variable: regeneratorRuntime

@kelset
Copy link
Contributor

kelset commented Jun 21, 2018

Closing this in favour of #19827 since the conversation seems to be moving forward over there

@kelset kelset closed this as completed Jun 21, 2018
@facebook facebook locked as resolved and limited conversation to collaborators Jun 21, 2019
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jun 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

6 participants