react-native-gesture-handler
react-native-gesture-handler copied to clipboard
missing dev dependencies with latest version
Description
When updating from "react-native-gesture-handler": "2.3.2",
to "react-native-gesture-handler": "2.4.1",
, I ran into errors running iOS, Android and Jest.
I solved these errors by install the following dependencies.
"@babel/plugin-proposal-nullish-coalescing-operator": "7.16.7",
"@babel/plugin-proposal-optional-chaining": "7.16.7",
"@babel/plugin-transform-arrow-functions": "7.16.7",
"@babel/plugin-transform-shorthand-properties": "7.16.7",
"@babel/plugin-transform-template-literals": "7.16.7",
Platforms
- [x] iOS
- [x] Android
- [ ] Web
Screenshots
Steps To Reproduce
-
create-react-native-app my-project
- install
react-native-gesture-handler
- run iOS or Android
- get error
- install dev dependencies
- error goes away
Expected behavior
Not needing to install additional dependencies.
Actual behavior
Had to install additional dependencies.
Snack or minimal code example
Package versions
- React: "react": "17.0.2",
- React Native: "react-native": "0.67.4",
- React Native Gesture Handler: "react-native-gesture-handler": "2.4.1",
- React Native Reanimated: "react-native-reanimated": "2.8.0",
Hey! 👋
The issue doesn't seem to contain a minimal reproduction.
Could you provide a snippet of code, a snack or a link to a GitHub repository that reproduces the problem?
Hey! 👋
It looks like you've omitted a few important sections from the issue template.
Please complete Snack or minimal code example section.
Hi! That's strange, I've followed the steps you provided but I didn't get any errors. If you have a project where you tested them, could you publish it to GitHub so I can look into it?
Hi! That's strange, I've followed the steps you provided but I didn't get any errors. If you have a project where you tested them, could you publish it to GitHub so I can look into it?
I ran into the same issue and kept going down the board of missing babel modules.
@NathanNovak In that case could you prepare a repository with a reproduction, or list the steps that I could follow? As I mentioned before, I was unable to reproduce it using the steps listed in the issue.
Today I updated the gesture-handler to v2.11.0 and also faced with this problem. But I note that there was no such problem on the version 2.9.0.
I've also just stumbled across this issue, presumably because of this? https://github.com/facebook/metro/commit/322dea8dc700de70aea92cf37614d5fc50e09c6b
Any solution for this