I followed the following steps:
The Firebase CLI (Command Line Interface) requires Node.js and npm, which you can install by following the instructions on https
To clarify one issue - it appears as though your index.js
file inside the functions
folder must export functions created within the same file (similar to what Fran had said).
It seems trying to organize your files into subfolders will not work properly with Firebase functions - same rules apply for using firebase serve
to test locally (must create codeinside functions/index.js
).
Hope this helps someone!