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
I've been running RNGH 2.20.x for a while and because of a bug that I believe is fixed in 2.22.x, I decided to upgrade RNGH by npm upgrade react-native-gesture-handler --save.
Once I did this and tried to install my app on my phone via metro (npm run start, followed by run on Android with my physical phone plugged in), I get these errors related to React Native Gesture Handler during the compilation log:
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.3/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
733 actionable tasks: 26 executed, 707 up-to-date
info 💡 Tip: Make sure that you have set up your development environment correctly, by running npx react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor
e: file:///home/sahab/Documents/freelance/LoadedLuxury/loaded-app/node_modules/react-native-gesture-handler/android/packageDeprecated/src/main/java/com/swmansion/gesturehandler/RNGestureHandlerPackage.kt:3:27 Unresolved reference: BaseReactPackage
e: file:///home/sahab/Documents/freelance/LoadedLuxury/loaded-app/node_modules/react-native-gesture-handler/android/packageDeprecated/src/main/java/com/swmansion/gesturehandler/RNGestureHandlerPackage.kt:22:33 Unresolved reference: BaseReactPackage
e: file:///home/sahab/Documents/freelance/LoadedLuxury/loaded-app/node_modules/react-native-gesture-handler/android/packageDeprecated/src/main/java/com/swmansion/gesturehandler/RNGestureHandlerPackage.kt:34:3 'createViewManagers' overrides nothing
e: file:///home/sahab/Documents/freelance/LoadedLuxury/loaded-app/node_modules/react-native-gesture-handler/android/packageDeprecated/src/main/java/com/swmansion/gesturehandler/RNGestureHandlerPackage.kt:43:3 'getViewManagers' overrides nothing
e: file:///home/sahab/Documents/freelance/LoadedLuxury/loaded-app/node_modules/react-native-gesture-handler/android/packageDeprecated/src/main/java/com/swmansion/gesturehandler/RNGestureHandlerPackage.kt:51:3 'getModule' overrides nothing
e: file:///home/sahab/Documents/freelance/LoadedLuxury/loaded-app/node_modules/react-native-gesture-handler/android/packageDeprecated/src/main/java/com/swmansion/gesturehandler/RNGestureHandlerPackage.kt:59:3 'getReactModuleInfoProvider' overrides nothing
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-gesture-handler:compileDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
> Compilation error. See log for more details
I fully admit this might be something with my machine/env setup, but it is pretty strange because now even if I /downgrade/ it won't fix the issue.
Things I've tried:
npm run start --clear-cache
delete node_modules and npm install
downgrade to 2.20.x and then upgrade to a couple different variants (2.21.x)
Description
I've been running RNGH 2.20.x for a while and because of a bug that I believe is fixed in 2.22.x, I decided to upgrade RNGH by
npm upgrade react-native-gesture-handler --save
.Once I did this and tried to install my app on my phone via metro (
npm run start
, followed byrun on Android
with my physical phone plugged in), I get these errors related to React Native Gesture Handler during the compilation log:I fully admit this might be something with my machine/env setup, but it is pretty strange because now even if I /downgrade/ it won't fix the issue.
Things I've tried:
I'm pretty stumped on what could be wrong
My package.json:
My node version is v20.11.1 and I've provided all the other information below.
Is my RN version too old? I don't see more recent versions of RN as being a requirement...
Steps to reproduce
I've detailed everything up there.. I just upgraded my RNGH and ran into these issues... before that it was working really well.
Snack or a link to a repository
N/A (private application and I haven't created a small repo yet)
Gesture Handler version
2.22.1
React Native version
0.73.5
Platforms
Android
JavaScript runtime
Hermes
Workflow
React Native (without Expo)
Architecture
Fabric (New Architecture)
Build type
Debug mode
Device
Real device
Device model
Samsung Galaxy A53
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: