-
Notifications
You must be signed in to change notification settings - Fork 24k
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
react-native cli tool syntax error on windows 10 #10033
Comments
Thanks for your question! We want to make sure to keep signal strong in the GitHub issue tracker – to make sure that it remains the best place to track issues that affect the development of React Native. Questions like yours deserve a purpose-built Q&A forum. Would you like to post this question to Stack Overflow with the tag #react-native? We'll be happy to answer there. Post a link to your Stack Overflow question here, so that we don't lose track of it. |
Hello @hramos, Thank you for your quick reply! I've then posted the question on SO: I'll be then waiting to understand what was the problem and the possible solution. Thank you for your support, and time, on this issue. |
I have the same problem. |
Yep, me too still.. And no answer whatsoever on SO :( 👎 |
Using Windows bash everything installs fine, but then trying to run on Windows gives a similar error:
Seems like someone else has a similar issue: https://stackoverflow.com/questions/37622492/react-native-syntaxerror-unexpected-token It's unfortunate, I need to make a mockup app before friday, I'll probably have to go with Xamarin now. |
I ran |
not for me.. |
I was just able to reproduce this easily by creating a directory with a non-ascii character (e.g., c:\šrc) and running |
My best hypothesis at this point is that the babel registration is not recognizing that the path for .\packager\react-packager\src\node-haste\index.js falls under the registration here: |
This is reproducible on OSX as well. |
I originally had a ç in my path name when I first installed react-native, might have been the issue even after I removed it. |
@oargaruna not sure why this would be a problem on OSX, as the paths should already be "normal" |
@rozele Frankly I don't know why this started happening on OSX. It was very strange. |
The repro steps don't reproduce the bug for me, in the sense that I am in fact able to run React Native on windows 10. It sounds like there are some similar problems on this issue, like the ones with non-ascii characters, but those aren't the initial rationale behind this issue so this issue is kind of not the right place to resolve it. #10154 still seems like a good thing to close out in order to be sure we get the Babel upgrades, and perhaps that will resolve everything, but either way I am going to close this issue in lieu of the more specific ones. Please feel free to open a new issue if people have more specific issues in terms of which environments or situation installation on windows does not work for them. |
Issue Description
When trying to run 'react-native' from a windows 10 machine it returns a syntax error:
Steps to Reproduce / Code Snippets
Additional Information
Thank you!
The text was updated successfully, but these errors were encountered: