Multiple error with the index for gesture
See original GitHub issueDescription
was coding and receive this huge error in the console. all file are in JS and
`Web Bundling complete 4330ms ./node_modules/react-native-gesture-handler/lib/module/index.js:73 "export ‘RaceGestureType’ (reexported as ‘RaceGesture’) was not found in ‘./handlers/gestures/gestureComposition’ 71 | export { NativeGestureType as NativeGesture } from ‘./handlers/gestures/nativeGesture’; 72 | export { ManualGestureType as ManualGesture } from ‘./handlers/gestures/manualGesture’;
73 | export { 74 | ComposedGestureType as ComposedGesture, 75 | RaceGestureType as RaceGesture, 76 | SimultaneousGestureType as SimultaneousGesture, Web Bundling complete 413ms ./node_modules/react-native-gesture-handler/lib/module/index.js:73 "export ‘ComposedGestureType’ (reexported as ‘ComposedGesture’) was not found in ‘./handlers/gestures/gestureComposition’ 71 | export { NativeGestureType as NativeGesture } from ‘./handlers/gestures/nativeGesture’; 72 | export { ManualGestureType as ManualGesture } from ‘./handlers/gestures/manualGesture’; 73 | export { 74 | ComposedGestureType as ComposedGesture, 75 | RaceGestureType as RaceGesture, 76 | SimultaneousGestureType as SimultaneousGesture, ./node_modules/react-native-gesture-handler/lib/module/index.js:73 "export ‘ExclusiveGestureType’ (reexported as ‘ExclusiveGesture’) was not found in ‘./handlers/gestures/gestureComposition’ 71 | export { NativeGestureType as NativeGesture } from ‘./handlers/gestures/nativeGesture’; 72 | export { ManualGestureType as ManualGesture } from ‘./handlers/gestures/manualGesture’; 73 | export { 74 | ComposedGestureType as ComposedGesture, 75 | RaceGestureType as RaceGesture, 76 | SimultaneousGestureType as SimultaneousGesture, ./node_modules/react-native-gesture-handler/lib/module/index.js:66 "export ‘FlingGestureType’ (reexported as ‘FlingGesture’) was not found in ‘./handlers/gestures/flingGesture’ 64 | export { TapGestureType as TapGesture } from ‘./handlers/gestures/tapGesture’; 65 | export { PanGestureType as PanGesture } from ‘./handlers/gestures/panGesture’; 66 | export { FlingGestureType as FlingGesture } from ‘./handlers/gestures/flingGesture’; 67 | export { LongPressGestureType as LongPressGesture } from ‘./handlers/gestures/longPressGesture’; 68 | export { PinchGestureType as PinchGesture } from ‘./handlers/gestures/pinchGesture’; 69 | export { RotationGestureType as RotationGesture } from ‘./handlers/gestures/rotationGesture’; ./node_modules/react-native-gesture-handler/lib/module/index.js:70 "export ‘ForceTouchGestureType’ (reexported as ‘ForceTouchGesture’) was not found in ‘./handlers/gestures/forceTouchGesture’ 68 | export { PinchGestureType as PinchGesture } from ‘./handlers/gestures/pinchGesture’; 69 | export { RotationGestureType as RotationGesture } from ‘./handlers/gestures/rotationGesture’; 70 | export { ForceTouchGestureType as ForceTouchGesture } from ‘./handlers/gestures/forceTouchGesture’; 71 | export { NativeGestureType as NativeGesture } from ‘./handlers/gestures/nativeGesture’; 72 | export { ManualGestureType as ManualGesture } from ‘./handlers/gestures/manualGesture’; 73 | export { ./node_modules/react-native-gesture-handler/lib/module/index.js:79 "export ‘GestureStateManagerType’ (reexported as ‘GestureStateManager’) was not found in ‘./handlers/gestures/gestureStateManager’ 77 | ExclusiveGestureType as ExclusiveGesture, 78 | } from ‘./handlers/gestures/gestureComposition’; 79 | export { GestureStateManagerType as GestureStateManager } from ‘./handlers/gestures/gestureStateManager’; 80 | export { NativeViewGestureHandler } from ‘./handlers/NativeViewGestureHandler’; 81 | export type { 82 | RawButtonProps, ./node_modules/react-native-gesture-handler/lib/module/index.js:67 "export ‘LongPressGestureType’ (reexported as ‘LongPressGesture’) was not found in ‘./handlers/gestures/longPressGesture’ 65 | export { PanGestureType as PanGesture } from ‘./handlers/gestures/panGesture’; 66 | export { FlingGestureType as FlingGesture } from ‘./handlers/gestures/flingGesture’; 67 | export { LongPressGestureType as LongPressGesture } from ‘./handlers/gestures/longPressGesture’; 68 | export { PinchGestureType as PinchGesture } from ‘./handlers/gestures/pinchGesture’; 69 | export { RotationGestureType as RotationGesture } from ‘./handlers/gestures/rotationGesture’; 70 | export { ForceTouchGestureType as ForceTouchGesture } from ‘./handlers/gestures/forceTouchGesture’; ./node_modules/react-native-gesture-handler/lib/module/index.js:72 "export ‘ManualGestureType’ (reexported as ‘ManualGesture’) was not found in ‘./handlers/gestures/manualGesture’ 70 | export { ForceTouchGestureType as ForceTouchGesture } from ‘./handlers/gestures/forceTouchGesture’; 71 | export { NativeGestureType as NativeGesture } from ‘./handlers/gestures/nativeGesture’; 72 | export { ManualGestureType as ManualGesture } from ‘./handlers/gestures/manualGesture’; 73 | export { 74 | ComposedGestureType as ComposedGesture, 75 | RaceGestureType as RaceGesture, ./node_modules/react-native-gesture-handler/lib/module/index.js:71 "export ‘NativeGestureType’ (reexported as ‘NativeGesture’) was not found in ‘./handlers/gestures/nativeGesture’ 69 | export { RotationGestureType as RotationGesture } from ‘./handlers/gestures/rotationGesture’; 70 | export { ForceTouchGestureType as ForceTouchGesture } from ‘./handlers/gestures/forceTouchGesture’; 71 | export { NativeGestureType as NativeGesture } from ‘./handlers/gestures/nativeGesture’; 72 | export { ManualGestureType as ManualGesture } from ‘./handlers/gestures/manualGesture’; 73 | export { 74 | ComposedGestureType as ComposedGesture, ./node_modules/react-native-gesture-handler/lib/module/index.js:65 "export ‘PanGestureType’ (reexported as ‘PanGesture’) was not found in ‘./handlers/gestures/panGesture’ 63 | export { GestureObjects as Gesture } from ‘./handlers/gestures/gestureObjects’; 64 | export { TapGestureType as TapGesture } from ‘./handlers/gestures/tapGesture’; 65 | export { PanGestureType as PanGesture } from ‘./handlers/gestures/panGesture’; 66 | export { FlingGestureType as FlingGesture } from ‘./handlers/gestures/flingGesture’; 67 | export { LongPressGestureType as LongPressGesture } from ‘./handlers/gestures/longPressGesture’; 68 | export { PinchGestureType as PinchGesture } from ‘./handlers/gestures/pinchGesture’; ./node_modules/react-native-gesture-handler/lib/module/index.js:68 "export ‘PinchGestureType’ (reexported as ‘PinchGesture’) was not found in ‘./handlers/gestures/pinchGesture’ 66 | export { FlingGestureType as FlingGesture } from ‘./handlers/gestures/flingGesture’; 67 | export { LongPressGestureType as LongPressGesture } from ‘./handlers/gestures/longPressGesture’; 68 | export { PinchGestureType as PinchGesture } from ‘./handlers/gestures/pinchGesture’; 69 | export { RotationGestureType as RotationGesture } from ‘./handlers/gestures/rotationGesture’; 70 | export { ForceTouchGestureType as ForceTouchGesture } from ‘./handlers/gestures/forceTouchGesture’; 71 | export { NativeGestureType as NativeGesture } from ‘./handlers/gestures/nativeGesture’; ./node_modules/react-native-gesture-handler/lib/module/index.js:73 "export ‘RaceGestureType’ (reexported as ‘RaceGesture’) was not found in ‘./handlers/gestures/gestureComposition’ 71 | export { NativeGestureType as NativeGesture } from ‘./handlers/gestures/nativeGesture’; 72 | export { ManualGestureType as ManualGesture } from ‘./handlers/gestures/manualGesture’; 73 | export { 74 | ComposedGestureType as ComposedGesture, 75 | RaceGestureType as RaceGesture, 76 | SimultaneousGestureType as SimultaneousGesture, ./node_modules/react-native-gesture-handler/lib/module/index.js:69 "export ‘RotationGestureType’ (reexported as ‘RotationGesture’) was not found in ‘./handlers/gestures/rotationGesture’ 67 | export { LongPressGestureType as LongPressGesture } from ‘./handlers/gestures/longPressGesture’; 68 | export { PinchGestureType as PinchGesture } from ‘./handlers/gestures/pinchGesture’; 69 | export { RotationGestureType as RotationGesture } from ‘./handlers/gestures/rotationGesture’; 70 | export { ForceTouchGestureType as ForceTouchGesture } from ‘./handlers/gestures/forceTouchGesture’; 71 | export { NativeGestureType as NativeGesture } from ‘./handlers/gestures/nativeGesture’; 72 | export { ManualGestureType as ManualGesture } from ‘./handlers/gestures/manualGesture’; ./node_modules/react-native-gesture-handler/lib/module/index.js:73 "export ‘SimultaneousGestureType’ (reexported as ‘SimultaneousGesture’) was not found in ‘./handlers/gestures/gestureComposition’ 71 | export { NativeGestureType as NativeGesture } from ‘./handlers/gestures/nativeGesture’; 72 | export { ManualGestureType as ManualGesture } from ‘./handlers/gestures/manualGesture’; 73 | export { 74 | ComposedGestureType as ComposedGesture, 75 | RaceGestureType as RaceGesture, 76 | SimultaneousGestureType as SimultaneousGesture, ./node_modules/react-native-gesture-handler/lib/module/index.js:64 "export ‘TapGestureType’ (reexported as ‘TapGesture’) was not found in ‘./handlers/gestures/tapGesture’ 62 | export { GestureDetector } from ‘./handlers/gestures/GestureDetector’; 63 | export { GestureObjects as Gesture } from ‘./handlers/gestures/gestureObjects’; 64 | export { TapGestureType as TapGesture } from ‘./handlers/gestures/tapGesture’; 65 | export { PanGestureType as PanGesture } from ‘./handlers/gestures/panGesture’; 66 | export { FlingGestureType as FlingGesture } from ‘./handlers/gestures/flingGesture’; 67 | export { LongPressGestureType as LongPressGesture } from ‘./handlers/gestures/longPressGesture’;`
Screenshots
Steps To Reproduce
- Create a new app
- and this happens in webpack
Expected behavior
Actual behavior
Snack or minimal code example
Package versions
- React:
- React Native:
- React Native Gesture Handler:
Issue Analytics
- State:
- Created 2 years ago
- Reactions:11
- Comments:19 (1 by maintainers)
Top GitHub Comments
As I could validate, the problem occurs only running on web
If you install the commit that fixes it, it works. ie
"react-native-gesture-handler": "https://github.com/software-mansion/react-native-gesture-handler#62e9eb66bced3b4c55042399d761baee7d961140",