Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hi337 opened this issue Feb 4, 2024 · 3 comments
Labels
Platform: Android This issue is specific to Android Repro provided A reproduction with a snack or repo is provided

Comments

@hi337
Copy link

hi337 commented Feb 4, 2024

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

@github-actions github-actions bot added Repro provided A reproduction with a snack or repo is provided Platform: Android This issue is specific to Android labels Feb 4, 2024
@m-bert
Copy link
Contributor

m-bert commented Feb 5, 2024

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
Copy link
Contributor

m-bert commented Feb 5, 2024

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

@m-bert m-bert added the Close when stale The issue will be closed automatically if it remains inactive label Feb 14, 2024
@wcandillon
Copy link

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

@github-actions github-actions bot removed the Close when stale The issue will be closed automatically if it remains inactive label Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: Android This issue is specific to Android Repro provided A reproduction with a snack or repo is provided
Projects
None yet
Development

No branches or pull requests

3 participants