-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
Unable to use 'react-native-init {project}' (error) #20039
Comments
We are automatically closing this issue because it does not appear to follow any of the provided issue templates. Please make use of the bug report template to let us know about a reproducible bug or regression in the core React Native library. If you'd like to start a discussion, check out https://discuss.reactjs.org or follow the discussion template. |
I am getting the same issue. I was able to create a new project as recently as last night and now running 'react-native init {project-name}' fails every time. I tried multiple version of NPM and NODE and have not found a way for it to work. |
Here's workaround, this is a known bug in RN 0.56 |
Still there... import type {CommandT} from './commands'; SyntaxError: Unexpected token import |
Heyy.. You are using new version of react native please follow this and create new new project -- react-native init --version="0.55.4" {projectName} This was happened only because of newer version of react natve Thanks! |
did this: |
Has any one found a solution to this issue? |
@faizlo can you show us your package.json after project init ? react-native init <proj_name> --version react-native@0.55.4 |
I've been using React Native for a few weeks now, working through several learning projects.
However, I'm no longer able to init a new project, as I get the following error. I've used the init command as recently as a few days ago. Any ideas?
The text was updated successfully, but these errors were encountered: