software-mansion/react-native-gesture-handler

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

hi337 opened this issue · 3 comments

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

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.

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

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