Skip to content

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
See also  Warning: Each child in a list should have a unique "key" prop - How to fix this react error?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.