I'm trying to start firebase functions emulator locally on macOS but getting the following error:
firebase emulators:start --only functions --debug
command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
[2022-05-30T13:15:53.611Z] > authorizing via signed-in user (xxx@xxx.xxx)
i emulators: Starting emulators: functions {"metadata":{"emulator":{"name":"hub"},"message":"Starting emulators: functions"}}
i emulators: Shutting down emulators. {"metadata":{"emulator":{"name":"hub"},"message":"Shutting down emulators."}}
[2022-05-30T13:15:53.863Z] TypeError: Cannot read properties of undefined (reading 'source')
at Object.startAll (/Users/lm/.nvm/versions/node/v16.15.0/lib/node_modules/firebase-tools/lib/emulator/controller.js:249:77)
at Command.actionFn (/Users/lm/.nvm/versions/node/v16.15.0/lib/node_modules/firebase-tools/lib/commands/emulators-start.js:28:52)
at /Users/lm/.nvm/versions/node/v16.15.0/lib/node_modules/firebase-tools/lib/command.js:190:25
at processTicksAndRejections (node:internal/process/task_queues:96:5)
I have done this a hundred times but for some reason it decided to stop working now. I have tried to logout and login again but it didn't help. What else can I try?
