Skip to content

Pnpm Multiple instances of Gesture Handler were detected. #2363

@CHANDRAMOHANnegi

Description

@CHANDRAMOHANnegi

Description

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081

FAILURE: Build failed with an exception.

java.lang.Exception:
[Gesture Handler] Multiple instances of Gesture Handler were detected. Only one instance of react-native-gesture-handler can be installed in a project. You need to resolve the conflict manually. Check out the documentation: https://docs.swmansion.com/react-native-gesture-handler/docs/troubleshooting#multiple-instances-of-gesture-handler-were-detected

Conflict between:

Steps to reproduce

Use pnpm to apply react navigation drawer

"react": "17.0.2",
"react-native": "0.68.5",
"react-native-reanimated": "^2.13.0",
"react-native-safe-area-context": "^4.4.1",
"react-native-screens": "^3.18.2",
"react-native-gesture-handler": "^2.8.0"
"@react-navigation/drawer": "^6.5.6",
"@react-navigation/native": "^6.1.1",
"@react-navigation/native-stack": "^6.9.7",

Snack or a link to a repository

(https://pnpm.io/package_json#pnpmoverrides)

Gesture Handler version

2.8.0

React Native version

68.5

Platforms

Android

JavaScript runtime

None

Workflow

React Native (without Expo)

Architecture

Fabric (New Architecture)

Build type

Debug mode

Device

Android emulator

Device model

pixel_2_api_31:5554

Acknowledgements

Yes

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions