I experienced the same issue and was confused only to realize I wasn't targeting the project's root folder. target the main react project folder (e.g. my-react-app) the one that contains all the react project files ( src, vite.config, etc )