Skip to content

angular-fire + firebase functions breaks ng deploy #2246

@wagnermaciel

Description

@wagnermaciel

Bug description

I experienced a bug where ng add @angular-fire followed by firebase init functions broke ng deploy due to a bug in firebase-tools.

Version info

Angular CLI:
8.3.19

Firebase:
>= 5.5.7 <8

AngularFire:
5.2.3

How to reproduce these conditions

ng new
ng add @angular-fire
firebase init functions
ng deploy (should break)

Debug output

** Output from ng deploy **

image

** After reinstalling firebase-tools with npm install --save-dev firebase-tools@latest **

image

Expected behavior

ng deploy deploys the application to Firebase.

Actual behavior

You get an error
TypeError: entry.message.split is not a function

The error is coming from firebase-tools. The bug has been fixed in v7.7.0
Link to the fix

TLDR; If you're getting this error, just run npm install --save-dev firebase-tools@latest

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions