Closed Visible-Break closed 3 years ago
@Visible-Break I'm not able to reproduce this. Here's what I did:
cd codelab-final-state
cd functions && npm install && cd ../
firebase emulators:start
localhost:5000
And here's what I see:
Hi samtstern, thanks for the reply & trying to work with me on this.
So I started over again - started by navigating to the folder where I've been keeping my local version of the repo and deleting all files, as well as deleting my firebase project previously setup for this tutorial.
Then following along with the tutorial,
git clone https://github.com/firebase/emulators-codelab.git
cd emulators-codelab\codelab-final-state
cd functions
-> npm install
-> cd ..
[note that "requested 'node' version '10' doesn't match your global version '12' "]firebase emulators:start
npm install firebase-tools
firebase login
firebase use --add
-> select dedicated Firebase project created earlier, entered "default" for alias to be used.firebase emulators:start --import=./seed
npm install
-> cd ..
npm install firebase-tools
-> firebase version 9.2.1 verifiedfirebase login
firebase use --add
-> select dedicated Firebase project created earlier, entered "default" for alias to be used.firebase emulators:start --import=./seed
Well, I hate to admit it, but I can't recreate the issue I was having either, though I don't notice anything different that I'm doing today that I didn't do the first or second time before opening this issue.
Only thing I can think of is that I had just installed Java for the first time that day, so maybe there were some setup operations completed over the course of a few shut down / turn on cycles since then (?)
@Visible-Break thank you for such a detailed follow up! I am glad it's working now.
Is the firebase emulator meant to work in an incognito window?
Was hitting some cache annoyances (launching from initial-state folder was continuing to bring in some of the code from final-state), so I wanted to move to incognito mode but neither final-state nor initial-state will launch properly.
Funny enough, these errors look the same as what I was encountering when I first opened this issue, although that was in a standard Chrome tab.
EDIT... continuing on this, I abandoned using incognito windows and chose to clear my browser history from the past hour instead and now these errors are persisting even in standard Chrome windows again.
@Visible-Break I think we have an issue in recent versions of firebase-tools
that is causing this, see:
https://github.com/firebase/firebase-tools/pull/3065
For now I'd say you should downgrade to firebase-tools
9.1.0
or so until we get the bug fix out. Closing this issue here as I think we're tracking it over there.
@Visible-Break we released a new version of firebase-tools
last night with a fix for this bug, so if you upgrade to the latest everything should work!
Following along with both the text & video tutorials, when trying to view the webpage using the emulator the page throws a bunch of errors and does not render.
I encounter the same issue when running emulators:start on both the /codelab-initial-state/ and /codelab-final-state/ folders.