software-mansion / react-native-gesture-handler

Declarative API exposing platform native touch and gesture system to React Native.
https://docs.swmansion.com/react-native-gesture-handler/
MIT License
6.06k stars 974 forks source link

Error: Unable to resolve module hoist-non-react-statics from gestureHandlerRootHOC.tsx #2744

Open hi337 opened 8 months ago

hi337 commented 8 months ago

Description

I already have hoist-non-react-statics installed, however I am getting this error: Unable to resolve module hoist-non-react-statics from (project-root)\node_modules\react-native-gesture-handler\src\components\gestureHandlerRootHOC.tsx: hoist-non-react-statics could not be found within the project or in these directories.

Steps to reproduce

  1. Clone repo
  2. Build and run

Snack or a link to a repository

https://github.com/hi337/MakeeMe

Gesture Handler version

2.14.1

React Native version

0.80.5

Platforms

Android

JavaScript runtime

Hermes

Workflow

React Native (without Expo)

Architecture

Paper (Old Architecture)

Build type

Debug mode

Device

Real device

Device model

Motorola 5G One Ace

Acknowledgements

Yes

m-bert commented 8 months ago

Hi @hi337! At first I wasn't able to run your reproduction due to some problems with react-native-navigation. In the end I've managed to run it (though it required to also install react-native-reanimated) and it works fine, I have not experienced any crash/problems with start. Do you have some more information that could help us identify root of this problem? Unfortunately those 2 steps that you've provided don't help much.

m-bert commented 8 months ago

Also please try to reinstall node_modules, maybe this will help.

wcandillon commented 7 months ago

I am also experiencing issue, but also struggling to offer a proper reproduction.