angularfire icon indicating copy to clipboard operation
angularfire copied to clipboard

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

Open jasonrichdarmawan opened this issue 1 year ago • 1 comments
trafficstars

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

jasonrichdarmawan avatar Jan 19 '24 14:01 jasonrichdarmawan

Did you find a solution?

coderpr0grammer avatar Aug 20 '24 15:08 coderpr0grammer

Closed, old age issue

jasonrichdarmawan avatar Jul 01 '25 08:07 jasonrichdarmawan