russellwheatley / emulator-extension-issue

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Firebase emulator bug

I've copied this code from the rtdb-limit-child-nodes extension from this pull request.

Steps To Recreate

  • you may have to change the project id in functions/emulator/firebaserc file to your own default project id.
  • run cd functions/ && npm i && npm run build from root project directory.
  • open a new terminal in root project directory and run cd functions/emulator && firebase emulators:start (assuming you have firebase-tools installed globally).

The console output that indicates the cloud function has been successfully initialized:

✔  functions[rtdblimit]: database function initialized.
  • Kill the emulator process.
  • change line 43 of code in the functions/src/index.ts as indicated in the file.
  • run cd functions/emulator && firebase emulators:start again from root project directory.

The that the cloud function is not initialized as it does not know the database emulator is running:

i  functions[rtdblimit]: function ignored because the unknown emulator does not exist or is not running.

About


Languages

Language:JavaScript 53.8%Language:TypeScript 44.2%Language:Shell 2.0%