Error: Failed to create a new MMKV instance: React Native is not running on-device #177875
Replies: 3 comments
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
|
The error: Error: Could not create a new instance of MMKV: React Native is not running on the device. means the native MMKV module isn’t being loaded, because: You’re running inside Expo Go (which doesn’t support native modules like MMKV). The package wasn’t properly linked during a prebuild or EAS build. You have multiple MMKV versions (2.x, 3.x, 4.x) conflicting in your project. ✅ Fixes Remove duplicate versions: npm uninstall react-native-mmkv Version 4.0.0 still has compatibility issues with Expo and the new architecture. Prebuild your project to link native modules: npx expo prebuild Run a custom EAS build (not Expo Go): eas build --profile development --platform android Then install it on your real device or emulator. Make sure you’re importing correctly: import { MMKV } from 'react-native-mmkv'; const storage = new MMKV(); |
Beta Was this translation helpful? Give feedback.
-
|
i dont think u understand the issue here if u realy read briefly i said i used all the version each one at time its impossible to run A project with multi version |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Bug
Body
Error: Failed to create a new MMKV instance: React Native is not running on-device
i already enabled and disabled new arch on v 2 and 3
and tried to update evry possible vertsion to v 4
"expo": "^54.0.0",
"react-native": "0.78.x",
"react-native-mmkv": "^2.12.2",
"react-native-mmkv": "^3.x.x",
"react-native-mmkv": "3.0.0-beta.5",
"react-native-mmkv": "4.0.0",
some of u had experienced it guys some one may had figure it out a solution or alternative that works on mobile ??
pls . i know im messing something
im willing to provide files like app.json/app.config.ts & package.json & eas.json
@saiyam-zepto-dev
@MohammadAliNajm
@pablospaniard
@vytautas-urbelis
Beta Was this translation helpful? Give feedback.
All reactions