question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

typo in '--help': index -> create-react-app

See original GitHub issue

I am a beginning to learn react. After installing create-react-app, I issued the (empty) command

$ create-react-app
Please specify the project directory:
  index <project-directory>

For example:
  index my-react-app

Run index --help to see all options.

As you see, the word ‘index’ appears where the word ‘create-react-app’ should appear.

Similar typo in ‘create-react-app --help’.

This small typo is confusing to the beginner.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Timercommented, Mar 20, 2017

Looks like we can explicity pass a name by changing https://github.com/facebookincubator/create-react-app/blob/master/packages/create-react-app/createReactApp.js#L26 from commander to new commander.Command(name). We can fetch the name from package.json or similar.

0reactions
mkazantsevcommented, Mar 20, 2017

Good idea, thank you @Timer. Created a PR with a change that does exactly that. Please let me know what you think.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to implement typo-friendly search components in your ...
This demo tutorial will walk through how to build a simple search application using React and also how to add typo-friendly features such...
Read more >
React Does Not Creat App Mistake. How Do I Solve?
Here is my index.js code where error shows up ; 'use strict'; var isPromise = require('is-promise'); /** ...
Read more >
STOP Using Create React App - YouTube
Create React App is a plague and we're here to cure it. Please use Vite, NextJS, or Remix instead. Seriously, anything is better...
Read more >
Create a New React App
To create a project, run: npx create-react-app my-app cd my-app npm start. Note. npx on the first line is not a typo —...
Read more >
Create React App without Create React App - Bits and Pieces
Webpack — helps in bundling our code into one single file · Babel — used to convert ECMAScript 2015+ (ES6+) code into a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found