Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should this work with latest Firebase-admin and Firebase-tools versions? #81

Closed
ElixirMike opened this issue Feb 7, 2020 · 3 comments
Closed

Comments

@ElixirMike
Copy link

I had this working with the following versions in my function directory:

"firebase-admin": "~7.0.0",
"firebase-function-tools": "^1.1.3",
"firebase-functions": "^2.2.0",

I then learned that in order to run functions locally on my machine using emulator, I needed to have Firebase-admin 8.0.0 or greater and firebase-functions 3.0.0 or greater.

I updated those versions and now when I run firebase deploy. I get "unexpected error".
My question is, is this version (1.1.3 ) compatible with the latest firebase-admin and firebase-functions versions?

It may be a different issue all together, but I'd like to know if this is the culprit or I need to look elsewhere.

@TarikHuber
Copy link
Collaborator

Hi. That project has no dependencies. Only peer dependencies so it uses the same firebase libraries as you do. Did you try to start the emulator without the code from firebase-functions-tools?

@ElixirMike
Copy link
Author

yea, I found the issue was elsewhere. First I need to revert to a slighly earlier version of npm. That got me through the first hurdle. Then hit another error related to missing @firebase/app . I ran npm install firebase in my functions directory...and now all is well.

By the way, love the solution on how it makes adding new Cloud Functions a breeze..well done.

@TarikHuber
Copy link
Collaborator

Thx 😄 I will close then this issue. Let me know if I can help elsewhere. I mean you helped yourself 😆

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants