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

fix: can not run npx react-native init MyApp --template react-native-template-typescript #2952

Closed
wants to merge 1 commit into from

Conversation

DibyajyotiMishra
Copy link
Contributor

…t-native-template-typescript).

Getting this error while using npx react-native init MyApp --template react-native-template-typescript. The project installation fails in most cases and lands into unexpected bugs. More details of this issue can be found here:

react-native-community/react-native-template-typescript#80

…t-native-template-typescript).

Getting this error while using npx react-native init MyApp --template react-native-template-typescript. The project installation fails in most cases and lands into unexpected bugs. More details of this issue can be found here:

react-native-community/react-native-template-typescript#80
@facebook-github-bot
Copy link

Hi @DibyajyotiMishra!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!

@netlify
Copy link

netlify bot commented Feb 1, 2022

✔️ Deploy Preview for react-native ready!

🔨 Explore the source changes: 4f6b65b

🔍 Inspect the deploy log: https://app.netlify.com/sites/react-native/deploys/61f8e0800ca2ca0008323d02

😎 Browse the preview: https://deploy-preview-2952--react-native.netlify.app

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@@ -14,7 +14,7 @@ If you're starting a new project, there are a few different ways to get started.
You can use the [TypeScript template][ts-template]:

```shell
npx react-native init MyApp --template react-native-template-typescript
npx react-native --ignore-existing init MyApp --template react-native-template-typescript
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this has to included in the official docs.

--ignore-existing is the symptom of a faulty environment (e.g. you installed globally packages while you should have not). If we do so, all the npx commands should also be adapted to include the same flag.

It's more of an instruction for a troubleshooting section

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May be we can add this as an extra instruction in case someone is facing this issue. 'Coz a lot of people off-late have been facing this issue.

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

Successfully merging this pull request may close these issues.

3 participants