-
I saw that you're using parcel to run the code via localhost, but I'm having trouble with parcel. When I open up localhost:1234, I end up with only the index.pug loaded, but when I try to click on the privacy policy, I'm getting redirected back to index.html. I know it's a problem with the file links, but I wanted to know two things.
ty for the help, I'll start coding when I get my end working |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 17 replies
-
I think you're running the parcel dev server. Before you start the emulator, you need to install firebase tools. |
Beta Was this translation helpful? Give feedback.
I think you're running the parcel dev server.
For the best emulation, I also use the Firebase Emulator, which includes Auth, Firestore, and Hosting.
Instead of running just
npm run start
, runnpm run watch
This will ONLY compile the code with hot reloading.
To run the server, also run
npm run emulator
Before you start the emulator, you need to install firebase tools.
They have some issues in the latest version regarding
/
serving/index.html
, so install 11.13.0 insteadnpm install -g firebase-tools@11.13.0
Thanks!