نص الخطأ
E/ReactNativeJS: TypeError: undefined is not an object (evaluating 'a.b.c') Hermes: Execution of bytecode failed in release build only
E/ReactNativeJS: TypeError: undefined is not an object (evaluating 'a.b.c') Hermes: Execution of bytecode failed in release build only
يعمل التطبيق في debug وينكسر في release. يقلّص release الشيفرة ويعطّل __DEV__ ويشغّل bytecode الخاص بـ Hermes.
adb logcat.--dev false وأعد إنتاج الخطأ نفسه.__DEV__ وقائمة المطور).adb logcat -s ReactNativeJS:V ReactNative:V npx react-native bundle --platform android --dev false --entry-file index.js --bundle-output /tmp/i.bundle --sourcemap-output /tmp/i.map cd android && ./gradlew assembleRelease
اختبر APK من نوع release على هاتف حقيقي كل أسبوع لا في اليوم الأخير.
المؤلف والترخيص: Nibras Code