when configuring the firebase hosting you mistakenly overwrote the public/index.html, to correct it just copy any other project public/index.html and replace with it, then run npm run build and firebase deploy --only hosting
npm run build
firebase deploy --only hosting