We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The latest commit a803e32 fails to build any project.
[rollo@Rollos-iMac my_project]$ npm start > my_project@0.0.1 start /Users/rollo/Developer/my_project > node_modules/react-native/packager/packager.sh /Users/rollo/Developer/my_project/node_modules/react-native/packager/react-packager/src/FileWatcher/index.js:51 function(...args){return _this.emit.apply(_this,['all'].concat(args));});}); ^^^ SyntaxError: Unexpected token ... at exports.runInThisContext (vm.js:53:16) at Module._compile (module.js:413:25) at normalLoader (/Users/rollo/Developer/my_project/node_modules/react-native/node_modules/babel-core/lib/api/register/node.js:199:5) at Object.require.extensions.(anonymous function) [as .js] (/Users/rollo/Developer/my_project/node_modules/react-native/node_modules/babel-core/lib/api/register/node.js:216:7) at Module.load (module.js:355:32) at Function.Module._load (module.js:310:12) at Module.require (module.js:365:17) at require (module.js:384:17) at Object.<anonymous> (/Users/rollo/Developer/my_project/node_modules/react-native/packager/react-packager/src/Server/index.js:14:19) at Module._compile (module.js:430:26)
This problem arose at this commit
1109ce3
The packager will run if I change the .babelrc file https://github.com/facebook/react-native/blob/master/packager/react-packager/.babelrc
.babelrc
And change es6.parameters.rest to es6.parameters
es6.parameters.rest
es6.parameters
The packager then runs but, it fails to transpile any rest spread operators meaning my app crashes with a syntax error in warning.js,
SyntaxError: Unexpected token '...'. Expected a parameter pattern or a ')' in a parameter list.
The text was updated successfully, but these errors were encountered:
@rollokb I'm having the same issue on a fresh app. This seems to be something that is being worked on in #1753
Sorry, something went wrong.
It seems like force updating babel-core works: evansolomon@2940387#diff-b9cfc7f2cdf78a7f4b91a753d10865a2R50
I'm sure this will be merged into master soon.
It seems like this is a problem with Babel and they may have fixed it in their development branch: babel/babel@57d2323
Thanks @dsibiski, that fixed the problem.
onKeyPress
No branches or pull requests
The latest commit a803e32 fails to build any project.
This problem arose at this commit
1109ce3
The packager will run if I change the
.babelrc
file https://github.com/facebook/react-native/blob/master/packager/react-packager/.babelrcAnd change
es6.parameters.rest
toes6.parameters
The packager then runs but, it fails to transpile any rest spread operators meaning my app crashes with a syntax error in warning.js,
The text was updated successfully, but these errors were encountered: