question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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® Core™ 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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:6
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
viniychukcommented, Jun 20, 2018

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.

2reactions
eshikeryacommented, Jun 20, 2018

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

react-native warning: Possible unhandled promise: can't find ...
You indeed don't handle outer promise ( Blob.build one) rejection. The problem is that if this operation fails, throws, etc. then you will ......
Read more >
react-native/CHANGELOG.md - UNPKG
- This Hermes release is primarily about closing gap between Hermes cut and this React Native release. Among ~400 commits, contains memory and...
Read more >
Releases.md | deno@v1.5.1
A modern runtime for JavaScript and TypeScript.
Read more >
sentry Changelog - PyUp.io
[node] fix: Check if buffer isReady before sending/creating Promise for request. ... `react-native-sentry >= 0.39.0` requires `react-native >= 0.56.0`
Read more >
Bug listing with status RESOLVED with resolution FIXED as at ...
... can't find KDE headers" status:RESOLVED resolution:FIXED severity:normal ... Bug:188 - "environment variable GZIP cause pilot-link-0.9.6.ebuild (kde) to ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found