-
-
Notifications
You must be signed in to change notification settings - Fork 980
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
ReferenceError: Can't find variable: queueMicrotask #2505
Comments
Hey! 👋 The issue doesn't seem to contain a minimal reproduction. Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem? |
Hi! This issue also happened to me on Android after upgrading "react-native-gesture-handler" from v2.9.0 to v2.11.0. |
+1, on iOS. Somehow after opening the debugger the error isn't shown. As soon as the debugger is stopped this error is shown. Update: after publishing it on TestFlight, it does not work. A white screen is displayed only. |
I commented the queueMicrotask functions at these places the error went away. Don't know how it will impact the functionality or performance. node_modules/react-native-gesture-handler/src/handlers/gestureHandlerCommon.ts |
Which JavaScript runtime are you using? - JSC would be the default on those RN versions so unless you've enabled Hermes or installed |
I have this exact same problem on iOS. I have xcode 14.3.1, react-native 0.63.5, react-native-gesture-handler 2.9.0. |
Hi @abdulrafeh857! I've prepared this PR, could you please check if it helps? |
## Description `queueMicrotask` was added in `react-native` 0.66 ([see changelog](https://github.com/react-native-community/releases/blob/master/CHANGELOG.md#v0660)). Because we support versions from 0.64, and some of users still use older versions of `react-native`, we have to change how we handle microtasks in versions below 0.66. Fixes #2505 Fixes #2484 ## Test plan Tested on newly created app with `react-native` 0.65.1.
Description
I am experiencing this error in react-native-gesture-handler. I don't know the cause of this error because it was working absolutely fine.
"react-native" : 0.65.1
"react-native-gesture-handler" - 2.11.0
Sample Code
import {FlatList} from 'react-native-gesture-handler';
<FlatList
data={carsData}
renderItem={renderCars}
ref={flatListRef}
)}
/>
Steps to reproduce
yarn
yarn ios
Error comes as soon as i try to render a flatlist from react-native-gesture-handler
Snack or a link to a repository
...
Gesture Handler version
2.11.0
React Native version
0.65.1
Platforms
Android, iOS
JavaScript runtime
None
Workflow
React Native (without Expo)
Architecture
Paper (Old Architecture)
Build type
Debug mode
Device
iOS simulator
Device model
iPhone 11Pro Max
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: