Bir Android APK'sını paketlemek için tepki-native kullanıyorum. Dev modda düzgün çalıştırabilirim ancak henüz imzalı bir apk yayınlayamadım. node version: `v5.10.0` npm version: `3.8.3` react-native version: `0.22.2`
babel çekirdekli sürümleri ile çalıştı 6.5.1
6.4.5
6.7.4
tepki-yerel paket atar Dev ve prod modunda SyntaxError
Ben bu komutları react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/
react-native bundle --platform android --dev true --entry-file index.android.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/
birini çalıştıran alıyorum hata
olduğunu 210beklenmeyen belirteci (120: 2) // Not: Bu ... gerektiren} ('tepki') üzerinde alıcı-sarılmış Altmodüllerin istekli // değerlendirme önlemek için son yerleştirilmelidir;
if (__DEV__) { at Parser.pp.raise (/Users/mihir/projects/personal/openchs/openchs-client/node_modules/babylon/index.js:1378:13) at Parser.pp.unexpected (/Users/mihir/projects/personal/openchs/openchs-client/node_modules/babylon/index.js:2817:8) at Parser.pp.parseIdentifier (/Users/mihir/projects/personal/openchs/openchs-client/node_modules/babylon/index.js:1227:10) at Parser.pp.parsePropertyName (/Users/mihir/projects/personal/openchs/openchs-client/node_modules/babylon/index.js:1070:135) at Parser.pp.parseObj (/Users/mihir/projects/personal/openchs/openchs-client/node_modules/babylon/index.js:986:12) at Parser.pp.parseExprAtom (/Users/mihir/projects/personal/openchs/openchs-client/node_modules/babylon/index.js:718:19) at Parser.parseExprAtom (/Users/mihir/projects/personal/openchs/openchs-client/node_modules/babylon/index.js:4305:22) at Parser.pp.parseExprSubscripts (/Users/mihir/projects/personal/openchs/openchs-client/node_modules/babylon/index.js:504:19) at Parser.pp.parseMaybeUnary (/Users/mihir/projects/personal/openchs/openchs-client/node_modules/babylon/index.js:484:19) at Parser.pp.parseExprOps (/Users/mihir/projects/personal/openchs/openchs-client/node_modules/babylon/index.js:415:19) See logs /var/folders/zj/sk4075x566l8jdl1gwzjl79h0000gn/T/react-packager.log at SocketClient._handleMessage (SocketClient.js:144:23) at BunserBuf.<anonymous> (SocketClient.js:53:42) at emitOne (events.js:90:13) at BunserBuf.emit (events.js:182:7) at BunserBuf.process (/Users/mihir/projects/personal/openchs/openchs-client/node_modules/bser/index.js:289:10) at /Users/mihir/projects/personal/openchs/openchs-client/node_modules/bser/index.js:244:12 at _combinedTickCallback (internal/process/next_tick.js:67:7) at process._tickCallback (internal/process/next_tick.js:98:9)
benim kod Daha
burada - https://github.com/OpenCHS/openchs-client bu bulur ve cevap aradığı