nx
nx copied to clipboard
Reanimated & Gesture Handler Don't Work Anymore
Current Behavior
Not sure if this is an issue with Nx after v16 or coming from those packages from https://github.com/software-mansion
Both gesture handler after 2.9.0 and reanimated after 3.1.0 throw that error on Android that multiple versions were detected (they count the symlink as another version)
More context:
https://github.com/software-mansion/react-native-reanimated/issues/4583 https://github.com/software-mansion/react-native-gesture-handler/issues/2481
Expected Behavior
App should build
GitHub Repo
No response
Steps to Reproduce
Build app with latest versions of gesture handler and reanimated
Nx Report
Node : 16.14.2
OS : darwin x64
yarn : 1.22.18
Hasher : Native
nx : 16.3.1
@nx/js : 16.3.1
@nx/jest : 16.3.1
@nx/linter : 16.3.1
@nx/workspace : 16.3.1
@nx/cypress : 16.3.1
@nx/detox : 16.3.1
@nx/devkit : 16.3.1
@nx/eslint-plugin : 16.3.1
@nx/express : 16.3.1
@nx/next : 16.3.1
@nx/node : 16.3.1
@nx/plugin : 16.3.1
@nx/react : 16.3.1
@nx/react-native : 16.3.1
@nx/storybook : 16.3.1
@nrwl/tao : 16.3.1
@nx/vite : 16.3.1
@nx/web : 16.3.1
@nx/webpack : 16.3.1
nx-cloud : 16.0.5
typescript : 5.1.3
Failure Logs
* What went wrong:
Execution failed for task ':react-native-reanimated:assertNoMultipleInstances'.
>
[react-native-reanimated] Multiple versions of Reanimated were detected. Only one instance of react-native-reanimated can be installed in a project. You need to resolve the conflict manually. Check out the documentation: https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/troubleshooting#multiple-versions-of-reanimated-were-detected
Conflict between:
- /Users/name/Documents/Code/company/apps/mobile/app_name/node_modules/react-native-reanimated
- /Users/name/Documents/Code/company/node_modules/react-native-reanimated
* What went wrong:
Execution failed for task ':react-native-gesture-handler:assertNoMultipleInstances'.
>
[react-native-gesture-handler] Multiple versions 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:
- /Users/name/Documents/Code/company/apps/mobile/app_name/node_modules/react-native-gesture-handler
- /Users/name/Documents/Code/company/node_modules/react-native-gesture-handler
### Operating System
- [X] macOS
- [ ] Linux
- [X] Windows
- [ ] Other (Please specify)
### Additional Information
_No response_