I have run through the docs and can not get the UI firebase emulator to work.
I'm using firebase version: 9.22.0 on a mac M1
warning in console.
i emulators: Starting emulators: hosting
i hosting: Serving hosting files from: build
✔ hosting: Local server: http://localhost:5001
⚠ emulators: The Emulator UI requires a project ID to start. Configure your default project with 'firebase use' or pass the --project flag.
┌─────────────────────────────────────────────────────────────┐
│ ✔ All emulators ready! It is now safe to connect your app. │
└─────────────────────────────────────────────────────────────┘
┌──────────┬────────────────┐
│ Emulator │ Host:Port │
├──────────┼────────────────┤
│ Hosting │ localhost:5001 │
└──────────┴────────────────┘
Emulator Hub running at localhost:4400
Other reserved ports: None
I have tried using the --project myproject and it still does not work.
Firebase.json
{
"hosting": {
"public": "build",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
},
"emulators": {
"hosting": {
"port": 5001
},
"ui": {
"enabled": true,
"host": "localhost",
"port": 4000
}
}
}
I've made sure my emulators are setup:
firebase init emulators
Can anyone help this is driving me crazy.