create-react-app
create-react-app copied to clipboard
yarn create react-app my-app --template typescript errors with strange message
Describe the bug
When i create a react app i get a strapi app??
(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:)
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.)
This solves your problem: https://github.com/yarnpkg/yarn/issues/8732
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
Thanks for the recommendation. But I don't see create-react-app
marked as archived yet is there any announcement? @Kenramiscal1106
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