Promise.allSettled is still undefined in 0.70.6 on iOS and Android with Hermes

This issue has been created since 2022-11-16.

Description

Promise.allSettled is still undefined on iOS and Android with Hermes when you have installed both latests versions of react native and expo (on a bare react native project).

It seems to work fine when executing tests with jest, however.

yarn why v1.22.19
[1/4] 🤔  Why do we have the module "promise"...?
[2/4] 🚚  Initialising dependency graph...
[3/4] 🔍  Finding dependency...
[4/4] 🚡  Calculating file sizes...
=> Found "[email protected]"
info Reasons this module exists
   - "react-native" depends on it
   - Hoisted from "react-native#promise"
info Disk size without dependencies: "244KB"
info Disk size with unique dependencies: "296KB"
info Disk size with transitive dependencies: "296KB"
info Number of shared dependencies: 1
=> Found "fbjs#[email protected]"
info This module exists because "expo#fbemitter#fbjs" depends on it.
info Disk size without dependencies: "220KB"
info Disk size with unique dependencies: "272KB"
info Disk size with transitive dependencies: "272KB"
info Number of shared dependencies: 1
✨  Done in 0.25s.

Version

0.70.6

Output of npx react-native info

info Fetching system and libraries information...
System:
    OS: macOS 12.6
    CPU: (10) arm64 Apple M1 Pro
    Memory: 658.97 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.16.0 - ~/.asdf/installs/nodejs/16.16.0/bin/node
    Yarn: 1.22.19 - ~/.asdf/installs/nodejs/16.16.0/bin/yarn
    npm: 8.11.0 - ~/.asdf/plugins/nodejs/shims/npm
    Watchman: 2022.09.19.00 - /opt/homebrew/bin/watchman
  Managers:
    CocoaPods: 1.11.3 - /Users/rarroyo/.asdf/shims/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 22.1, iOS 16.1, macOS 13.0, tvOS 16.1, watchOS 9.1
    Android SDK: Not Found
  IDEs:
    Android Studio: 2021.3 AI-213.7172.25.2113.9014738
    Xcode: 14.1/14B47b - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.16.1 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 18.2.0 => 18.2.0
    react-native: 0.70.6 => 0.70.6
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Steps to reproduce

1.- Have react native 0.70.6 installed.
2.- Have expo installed on a bare react native application following their documentation.
3.- Use Promise.allSettled.
4.- Get [TypeError: undefined is not a function].

Snack, code example, screenshot, or link to a repository

const results = await Promise.allSettled([promise1, promise2])
jkadamczyk wrote this answer on 2022-11-23

I have to agree with the issue. My setup is slightly different. I use 0.68.5 in a project, along with hermes-engine version 0.11.0.
It should've been fixed in 0.68.4, which makes me assume that it should also work in 0.68.5, but it doesn't work.

More Details About Repo
Owner Name facebook
Repo Name react-native
Full Name facebook/react-native
Language JavaScript
Created Date 2015-01-09
Updated Date 2022-12-10
Star Count 106395
Watcher Count 3660
Fork Count 22685
Issue Count 2288

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
All Devices : Cannot add property useTemperature, object is not extensible 12 2020-03-17 2022-11-05
ImPlot heavily relies on DragLineX call order but it shall not (IMO) 0 2021-12-10 2022-11-02
Chinese Support Redux v0140 don't work from 1 week 10 2020-11-15 2022-10-11
When importing from assembly, detect and generate foreign keys 0 2020-11-02 2022-07-07
Make Realistic Bees work with custom texture packs 1 2022-08-19 2022-11-16
Admin - select2 hidden disabled option 3 2021-06-04 2022-11-15
NeoEsp8266Dmx512Method not present in Keywords file 1 2022-07-30 2022-08-27
Generate randLines programmatically 4 2022-01-16 2022-11-23
Release plans 1 2022-01-14 2022-01-15
Feature Request: Filter and sort videos by length 0 2021-10-14 2022-11-02
Upstream 无法设置 host_header 1 2021-01-04 2022-11-17
Impossible to edit a plugin that does not have a service 1 2021-04-30 2022-11-17
Promise execution order vs pointer event handling in Safari 1 2019-08-20 2022-11-27
Preprocessing broken? 1 2022-02-21 2022-11-04
Возможность исключения файлов из резервной копии 2 2021-12-22 2022-11-13
Права на файлы резервных копий и архивов wal при использовании group access и выделенного пользователя для резервного копирования. 2 2022-01-21 2022-10-18
Access to XXXXX exceeds its its access right 1 2021-10-06 2022-11-14
I got this error TypeError: __init__() missing 1 required positional argument: 'strategy' 0 2022-05-19 2022-12-04
Adding content to Existing Archive corrupts data 2 2021-05-04 2022-11-29
sendRawTransaction appears to work, but the transaction never appears 2 2022-02-12 2022-11-26
Call drop due to ACK timeout 2 2022-09-13 2022-11-28
/usr/bin/pacman: Permission denied after initial pacman -Syu 5 2021-11-23 2022-12-09
Four Hours Behind 1 2021-08-03 2022-01-16
ENH: Support for fractions.Fraction in np.average() 1 2022-07-15 2022-09-04
<textarea> in AdminFormElement::textarea crashes 4 2021-09-13 2022-11-27
The post_redraw function errors 3 2022-06-23 2022-11-23
Improve the error message on invoice creation 1 2021-11-03 2022-10-23
Neo4j session.run summary is 'None' 1 2022-02-10 2022-11-13
GatewayTimeOut does not work for 'direct' gateway connection 2 2019-09-30 2022-12-03
Where to find the current version of setup-r etc? 4 2021-06-06 2022-12-09
Using the copy tool while translating content causes console errors 0 2022-07-16 2022-11-19
calico-node not ready for lack of vxlan.calico 2 2022-01-19 2022-11-26
ScreenShoot EXIF information gets lost on ios 0 2021-01-24 2022-11-09
What is the motivation for `NaN` canonicalization? 6 2022-10-29 2022-11-12
job_summary does not display correctly 0 2020-09-15 2022-09-29
Hotfix releases 0 2021-05-03 2021-12-30
Stable MessagePack Encoder 1 2022-04-06 2022-11-26
MAUI ToDo Authentication: multiple logins 6 2022-08-23 2022-12-02
server_info missing information about network_ledger 0 2021-08-17 2022-12-06
ban time is different when logging in 0 2021-09-21 2022-11-04
Discuss support for `scss/selector-nest-combinators` 0 2021-02-09 2022-12-05
[Next.js 13][Routing][Pre-fetching] Dynamic route fails to pre-fetch (404) 3 2022-10-31 2022-10-26
[devtools-tips] 13 - Console utlilities API 0 2022-07-13 2022-08-12
Full clone of a template that contains a snapshot results in error if the disk is resized 2 2021-05-31 2022-12-05
Features page: status and colors 1 2022-05-17 2022-11-03
In what cases can Spinal clone a bundle? and maybe a possible improvement 3 2022-03-11 2022-11-27
Protocol 'https' not on whitelist 'concat,file,subfile'! 4 2021-03-13 2022-11-13
Running regular updates through Pop Shop is bricking the OS and fails to boot. 5 2021-06-23 2022-11-25
Why are available components being removed from Documentation? 7 2021-10-31 2022-09-30
Netgear Integration Pulls Wrong Firmware on RAX20 Router 5 2022-07-19 2022-11-15