Well, it so happened that it works, but pretty much had to start from scratch. I deleted the shared folder and just moved the html, css, js and node-module folders from my project directory, then installed firebase-tools again and ran the firebase init command, then restarted the localhost server and everything started working again. After which I returned all my previous folders, and everything works as before.
Not sure if the problem occurred 100%, but at some point I deleted my index.html file and then returned it later when I tested something. At this moment, I feel that the problem has begun. I will try to test this script in a test project, but in my opinion, do not delete the index.html file yet, just modify the existing one. Thanks to everyone.
source share