Hi @simpulton!
For Challenge 01:
- there are inconsistent instructions, and
- the
npm create vite@latest . -- --template react-ts command is incorrect.
Inconsistent Instructions
README.md says:
Start Your First Challenge
cd challenges/01-project-setup/start
npm install
npm run dev
Open the README.md in that challenge directory and follow the instructions.
But challenges/01-project-setup/README.md says to start with an empty directory:
Starting Snapshot
An empty directory. You will scaffold the project from scratch.
The Challenge
Step 1 — Scaffold the Project
Use Vite to create a new React + TypeScript project:
npm create vite@latest . -- --template react-ts
npm install
Incorrect npm create command
Issuing the npm create vite@latest . -- --template react-ts command gets this result:
$ npm create vite@latest . -- --template react-ts
npm warn "react-ts" is being parsed as a normal command line argument.
npm warn Unknown cli config "--template". This will stop working in the next major version of npm.
So npm ignores the --template react-ts flag and the user ends up having to specify react and typescript anyway. npm create vite@latest . could be less misleading.
npm version
This result happens with npm -v 11.6.2, 11.10.1, and 11.11.0
Hi @simpulton!
For Challenge 01:
npm create vite@latest . -- --template react-tscommand is incorrect.Inconsistent Instructions
README.md says:
But challenges/01-project-setup/README.md says to start with an empty directory:
Incorrect
npm createcommandIssuing the
npm create vite@latest . -- --template react-tscommand gets this result:So
npmignores the--template react-tsflag and the user ends up having to specifyreactandtypescriptanyway.npm create vite@latest .could be less misleading.npmversionThis result happens with
npm -v11.6.2, 11.10.1, and 11.11.0