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

bug: On dev:android TypeError: Cannot read property 'NativeModule' of undefined, js engine: hermes #1302

Open
pabrcno opened this issue Feb 9, 2025 · 0 comments

Comments

@pabrcno
Copy link

pabrcno commented Feb 9, 2025

Provide environment information

dependencies": {
  "@bacons/text-decoder": "^0.0.0",
  "@expo/metro-config": "^0.19.9",
  "@shopify/flash-list": "1.7.2",
  "@tanstack/react-query": "catalog:",
  "@trpc/client": "catalog:",
  "@trpc/react-query": "catalog:",
  "@trpc/server": "catalog:",
  "expo": "~52.0.27",
  "expo-constants": "~17.0.4",
  "expo-dev-client": "~5.0.10",
  "expo-linking": "~7.0.4",
  "expo-router": "~4.0.17",
  "expo-secure-store": "^14.0.1",
  "expo-splash-screen": "~0.29.21",
  "expo-status-bar": "~2.0.1",
  "expo-web-browser": "^14.0.2",
  "nativewind": "~4.1.23",
  "react": "catalog:react18",
  "react-dom": "catalog:react18",
  "react-native": "~0.77.0",
  "react-native-css-interop": "~0.1.22",
  "react-native-gesture-handler": "~2.22.1",
  "react-native-reanimated": "~3.16.7",
  "react-native-safe-area-context": "~5.1.0",
  "react-native-screens": "~4.5.0",
  "superjson": "2.2.2"
},

Describe the bug

🐞 Bug Report: TypeError: Cannot read property 'NativeModule' of undefined on dev:android (Hermes)

💥 Issue

When running the project in development mode on Android (dev:android), the app crashes with the following error:

Stacktrace

bash
com.facebook.react.common.JavascriptException: TypeError: Cannot read property 'NativeModule' of undefined, js engine: hermes
anonymous@877:166
s@2:1795
d@2:1259
i@2:498
anonymous@869:1351
...

❓ Expected Behavior
The app should run without crashing in development mode on Android
⚠️ Actual Behavior
Crashes immediately with TypeError: Cannot read property 'NativeModule' of undefined.

Link to reproduction

https://github.com/pabrcno/turborepo-test

To reproduce

🛠️ Steps to Reproduce
Clone the repo
Follow Readme
Run pnpm dev (android)
Observe the crash in development mode

Additional information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant