A template was not provided. This is likely because you’re using an outdated version of create-react-app – React error – How to fix?
Learn how to fix the React error – A template was not provided. This is likely because you’re using an outdated version of create-react-app.
This error can easily be fixed in two steps.
First, uninstall the global version of create-react-app.
npm uninstall -g create-react-app
Then delete the create-react-app manually using the following command.
rm -rf /usr/local/bin/create-react-app
Now you can run the following command to build a new app with src folder.
npx create-react-app