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

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

Open
jasonrichdarmawan opened this issue Jan 19, 2024 · 0 comments

Comments

@jasonrichdarmawan
Copy link

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

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

1 participant