You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: undefined is not a function
at refetchAll(/src/app/bookings/[id]/edit.tsx:103:34)
at fetchData(/src/utils/hooks/useUserInitiatedFetch.ts:9:20)
at next(native)
at asyncGeneratorStep(/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:17)
at _next(/node_modules/@babel/runtime/helpers/asyncToGenerator.js:17:27)
at Promise$argument_0(/node_modules/@babel/runtime/helpers/asyncToGenerator.js:22:12)
at tryCallTwo(/node_modules/promise/setimmediate/core.js:45:7)
at doResolve(/node_modules/promise/setimmediate/core.js:200:23)
at Promise(/node_modules/promise/setimmediate/core.js:66:12)
at <anonymous>(/node_modules/@babel/runtime/helpers/asyncToGenerator.js:14:23)
at _onRefresh(/node_modules/react-native/Libraries/Components/RefreshControl/RefreshControl.js:187:49)
at apply(native)
at invokeGuardedCallbackImpl(/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:22:15)
at apply(native)
at invokeGuardedCallback(/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:40:34)
at apply(native)
at invokeGuardedCallbackAndCatchFirstError(/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:53:30)
at executeDispatch(/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:73:42)
at executeDispatchesAndReleaseTopLevel(/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:1047:24)
at call(native)
at forEachAccumulated(/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:364:63)
at batchedUpdates$1$argument_0(/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:1082:25)
at batchedUpdatesImpl(/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:9578:14)
at batchedUpdates$1(/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:1028:30)
at _receiveRootNodeIDEvent(/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:1059:19)
at ReactNativePrivateInterface.RCTEventEmitter.register$argument_0.receiveEvent(/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:1102:28)
at apply(native)
at __callFunction(/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:433:34)
at __guard$argument_0(/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:113:26)
at __guard(/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:368:11)
at callFunctionReturnFlushedQueue(/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:112:17)
Hi, we are unable to investigate problems without a minimal repro, plus this doesn't look like a bug in Hermes - Hermes exposes Promise.allSettled().
However from a cursory glance it looks like you are using a Promise polyfill, not the Promise provided by Hermes, judging by the following lines in your stack trace:
at tryCallTwo(/node_modules/promise/setimmediate/core.js:45:7)
at doResolve(/node_modules/promise/setimmediate/core.js:200:23)
at Promise(/node_modules/promise/setimmediate/core.js:66:12)
Description
Our Sentry logs are showing multiple error events when calling
Promise.allSettled
with the error beingundefined is not a function
.I can't replicate the issue locally, only seems to happen in production.
facebook/react-native#35363
Steps to reproduce
1.- Setup a blank react native app.
2.- Use Promise.allSettled.
3.- Build the app for production.
4.- Get [TypeError: undefined is not a function].
React Native Version
0.74.5
Affected Platforms
Runtime - Android, Runtime - iOS
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/ammar-madni/promise-all-settled-undefined
Screenshots and Videos
The text was updated successfully, but these errors were encountered: