Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of const in strict mode #23

Open
donmullen opened this issue Nov 6, 2015 · 3 comments
Open

Use of const in strict mode #23

donmullen opened this issue Nov 6, 2015 · 3 comments

Comments

@donmullen
Copy link

Got the following popup when running:

natal init FutureApp --interface om-next

/Users/don/src/react-native/future-app/native/node_modules/react-native/packager/packager.js:15
const fs = require('fs');
^^^^^
SyntaxError: Use of const in strict mode.
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3
Process terminated. Press to close the window

Resulting in this in the terminal:

$ natal init FutureApp --interface om-next
Creating FutureApp

Creating Leiningen project
Updating Leiningen project
Compiling ClojureScript
Creating React Native skeleton
Installing Pod dependencies
Updating Xcode project
Creating Natal config
Compiling Xcode project
Command failed: xcodebuild -workspace native/ios/FutureApp.xcworkspace -scheme FutureApp -destination platform='iOS Simulator',OS=latest,id='C805F622-C03C-47C1-8AF1-BF08FC33760A' test

@dmotz
Copy link
Owner

dmotz commented Nov 6, 2015

What version of Node do you have installed?

@mfikes
Copy link
Collaborator

mfikes commented Nov 7, 2015

@donmullen you managed to sort this one out, rught? Maybe upgraded node?

@dmotz
Copy link
Owner

dmotz commented Dec 2, 2015

Are you using nvm? If so try upgrading nvm's version as well, as explained here: facebook/react-native#3243 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants