showtime-xyz / showtime-tab-view

A react native TabView component that support collapse header and custom refresh control, powered by Reanimated & GestureHandler. Join Showtime:
https://showtime-xyz.notion.site/Join-Showtime-Public-fa6282938e284134b302184062d7e329
MIT License
219 stars 23 forks source link

Multiple instances of Gesture Handler were detected. #4

Closed abdullahIsa closed 1 year ago

abdullahIsa commented 1 year ago

Hello, i am having issues and i checked https://docs.swmansion.com/react-native-gesture-handler/docs/next/troubleshooting but i dont understand what i should really do.

* What went wrong:
Execution failed for task ':react-native-gesture-handler:assertNoMultipleInstances'.
> 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:
  - C:\Users\Abdullah\Desktop\Programming\company\Chappie\Chappie\node_modules\react-native-gesture-handler\package.json
  - C:\Users\Abdullah\Desktop\Programming\company\Chappie\Chappie\node_modules\showtime-tab-view\node_modules\react-native-gesture-handler\package.json

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
java.lang.StackOverflowError (no error message)

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 42s
7 actionable tasks: 2 executed, 5 up-to-date
alantoa commented 1 year ago

@abdullahIsa hi, you should check your react-native-gesture-handler version and ensure it more than v2.0.0

abdullahIsa commented 1 year ago

@abdullahIsa hi, you should check your react-native-gesture-handler version and ensure it more than v2.0.0

ah thanks, working now, i added this in package.json

"overrides": {
    "react-native-gesture-handler": "^2.9.0"
}
frozencap commented 1 year ago

this is not a solution as whenever there is an update in either conflicting package versions, you need to go back and hardcode the version bump.

frozencap commented 1 year ago

is there any particular reason why the lib is frozen to 2.8.0 ?

    "react-native-gesture-handler": "~2.8.0",

I'm using ^2.5.0 and the lib has reached 2.9. Maybe a version bump here ?