2016-12-07 10 views
2

Wenn Im meine RN App versucht, auf iOS zu starten 8 ich dieses seltsame Fehler: Unhandled JS Exception: SyntaxError
Und das ist alles, nicht mehr Informationen mehr.
Ist any1 über dieses Problem gestolpert?
Auf iOs 9+ Anwendung läuft ok tho.ReactNative - Unbehandelte JS Ausnahme: Syntax

xCode-Version: 8.1. Protokolle von xCode:
2016-12-07 16:33:57.073 [info][tid:main][RCTBatchedBridge.m:73] Initializing <RCTBatchedBridge: 0x7fc36c72ae80> (parent: <RCTBridge: 0x7fc36c060920>, executor: RCTJSCExecutor) 2016-12-07 16:34:29.369 [warn][tid:com.facebook.react.JavaScript][RCTBatchedBridge.m:509] Failed to execute source code: Unhandled JS Exception: SyntaxError 2016-12-07 16:34:29.369 [fatal][tid:main] Unhandled JS Exception: SyntaxError

Mein package.json:
{ "name": "...", "version": "0.0.1", "private": true, "scripts": { "start": "node node_modules/react-native/local-cli/cli.js start", "test": "jest" }, "dependencies": { "fbjs": "^0.8.6", "moment": "^2.16.0", "react": "15.3.2", "react-native": "^0.37.0", "react-native-chart": "^1.0.8-beta", "react-native-gifted-chat": "0.0.10", "react-native-image-picker": "^0.23.0", "react-native-image-progress": "^0.6.0", "react-native-locale": "0.0.11", "react-native-material-kit": "^0.3.3", "react-native-message-bar": "^1.6.0", "react-native-modal-datetime-picker": "^3.0.0", "react-native-modal-picker": "0.0.16", "react-native-router-flux": "^3.37.0", "react-native-timer": "^1.1.2", "shortid": "^2.2.6" }, "jest": { "preset": "jest-react-native" }, "devDependencies": { "babel-jest": "17.0.0", "babel-preset-react-native": "1.9.0", "jest": "17.0.1", "jest-react-native": "17.0.1", "react-test-renderer": "15.3.2", "whatwg-fetch": "1.0.0" } }

Knoten, npm und reagieren-native verisons:
[email protected] ~/D/G/myApp> npm -v 4.0.2 [email protected] ~/D/G/myApp> node -v v4.4.4 [email protected] ~/D/G/myApp> react-native -v react-native-cli: 1.2.0 react-native: 0.37.0

Jede Hilfe, warum dieser Fehler zu begrüßen würde auftritt !

Antwort

1

Es gibt ein Problem Reactive Native Version 0.39.

Sie müssen 'use strict' auskommentieren; in Zeile 30 in node_modeles/reagieren-native/Bibliotheken/Kern/InitializeCore.js:

// 'use strict'; Fix to RN 0.39 - https://github.com/facebook/react-native/issues/11389 

Alternativ können Sie gehen zurück native Version 0.38 zu reagieren.

+0

Danke mann .. Werke .. – jose920405

Verwandte Themen