facebook / create-react-app

Set up a modern web app by running one command.
https://create-react-app.dev
MIT License
102.58k stars 26.8k forks source link

yarn create react-app my-app --template typescript errors with strange message #12562

Open CarlosBalladares opened 2 years ago

CarlosBalladares commented 2 years ago

Describe the bug

When i create a react app i get a strapi app?? image

(Write your answer here.)

Did you try recovering your dependencies?

no, can't initialize the project

(Write your answer here.)

Which terms did you search for in User Guide?

getting started https://create-react-app.dev/docs/getting-started

(Write your answer here if relevant.)

Environment

(paste the output of the command here.)

Steps to reproduce

yarn create react-app my-app --template typescript

(Write your steps here:)

1. 2. 3.

Expected behavior

it creates a react app with typescript, no strapi

(Write what you thought would happen.)

Actual behavior

It errors out saying it tried to create strapi app

(Write what happened. Please add screenshots!)

Reproducible demo

don't have one since it didnt even start. Yarn version was 1.22 node 16.14

(Paste the link to an example project and exact instructions to reproduce the issue.)

natanael commented 2 years ago

This solves your problem: https://github.com/yarnpkg/yarn/issues/8732

Kenramiscal1106 commented 2 years ago

Create-react-app is an outdated solution for creating react apps. Just use the vite and run: npm init vite Then, select the react template

CarlosBalladares commented 2 years ago

Thanks for the recommendation. But I don't see create-react-app marked as archived yet is there any announcement? @Kenramiscal1106

uooopss commented 1 year ago

For Windows: C:\Users\USER_NAME\AppData\Local\Yarn\Data\global. delete create-strapi-app field from package.json(don't forget to save). And deleteyarn.lock