Skip to content

[BUG] optimization: true cause Service functions is not available Error: Service functions is not available #3498

Closed
@jasonrichdarmawan

Description

@jasonrichdarmawan

Version info

Angular: 13.3.11

Firebase: 10.7.1

AngularFire: 7.6.1

Other (e.g. Ionic/Cordova, Node, browser, operating system): MacOS, but deployed to Firebase Hosting, same thing happened.

How to reproduce these conditions

Failing test unit, Stackblitz demonstrating the problem

repository

Steps to set up and reproduce

  1. run npx ng serve --project account --configuration production
    Note: with --configuration development, it works.
  2. try to add functions: Functions to one of the Component's constructor.
  3. When you load the component, it will throws error Service functions is not available Error: Service functions is not available

Sample data and security rules

Debug output

** Errors in the JavaScript console **

** Screenshots **

image

Expected behavior

Functions should work, just like when in development mode.

Actual behavior

It throws Service functions is not available Error: Service functions is not available

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