2

I install the environment for react-native, and try to get AwesomeProject running.

On the terminal that opens, I get an SyntaxError: Use of const in strict mode error pointing to the line:

const babel = require('babel-core');
^^^^^`

'NSInternalInconsistencyException', reason: 'It looks like the implementationof DEV has changed. Update -[RCTBatchedBridge loadSource:].'`

Is the new version of Xcode and build target being iOS 9, the problem? Or something else?

Zigii Wong
  • 7,766
  • 8
  • 51
  • 79
esh
  • 2,842
  • 5
  • 23
  • 39

3 Answers3

0

You need to upgrade Node.js to v4+

Jeff Trudeau
  • 211
  • 2
  • 3
  • `node --version` is `v4.1.1` – esh Oct 10 '15 at 16:30
  • Hmm, I had the same issue. I was running the macports version of node which was way outdated. After installing the latest version and re-creating the react-native project everything is back to normal. – Jeff Trudeau Oct 11 '15 at 17:06
  • make sure , that the terminal thats running the packager , is the right node version , in case you use nvm . differnt terminals can have diffrent node -v – doron aviguy Nov 10 '15 at 09:49
0

try to add

dev=true&platform=ios

to packager url (AppDelegate.m)

davejal
  • 6,009
  • 10
  • 39
  • 82
setdvd
  • 221
  • 1
  • 7
0

Try upgrade react-native to 0.14.2,not 0.17.0 or latest and upgrade Node.js to v4+.

Yu Chen
  • 1
  • 2