Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Firebase deploy functions v2 fails

Javier Martín August 8, 2023

I'm getting some errors deploying v2 functions via Firebase deploy, it seems is because you are using as Firebase dependencies an older firebase-functions without total compatibility for v2.

In my local code I have no problems with it using the following dependencies (last version):


    "firebase-admin": "^11.10.1",
    "firebase-functions": "^4.4.1",

And for devDependencies I have:

"firebase-functions-test": "^3.1.0"

For engine in that package.json, I have Node 16 (I think the minium is Node 14 but I'm not sure)

Can you update it for the pipeline?

Thank you

3 answers

1 accepted

1 vote
Answer accepted
Javier Martín August 9, 2023

I created a PR with the update, it's my first time so I don't know if anything is missing

My main problem with Pipeline that is described here:

It was resolved 1-2 months ago in a new firebase-tools versions. Local deployments are working OK so with the propsed update it will be working via Pipeline

2 votes
Javier Martín August 8, 2023

In my computer, my global firebase-tools version is: 12.4.7, but the problem it seems to be with firebase-functions is very old without v2 capacities.

So I think will be neccesary to update those functions dependencies along with firebase-tools to be coherent.

Javier Martín August 8, 2023

Reviewing your code it seems that your firebase-functions is for test and the really important thing here is there firebase-tools

For the version to use the pipeline will check my package.json file... so I think the only needed thing is to update firebase-tools to 12.* with the new capabilities to work with v2 functions.

To keep it maintained with latest releases (if you are not updating it regullary) is it possible to make a fork and use that fork in my pipeline easily?


Like Igor Stoyanov likes this
0 votes
Igor Stoyanov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 11, 2023

@Javier Martín hi. New version released according to your pull request changes.

Regards, Igor

Suggest an answer

Log in or Sign up to answer
Site Admin
AUG Leaders

Atlassian Community Events