Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

286
Views
Unknown Syntax Error when implementing Cloud Functions in the new AngularFire 7 (Firebase 9)

In app.module.ts

import { provideFunctions, getFunctions } from '@angular/fire/functions';

@NgModule({
  imports: [
    ...
    provideFirebaseApp(() => initializeApp(environment.firebase)),
    provideFunctions(() => getFunctions()),
  ],

In my app.component

export class AppComponent {
  constructor(private fns: Functions) {}

  hello() {
    httpsCallable(
      this.fns,
      'test'
    )('hello world').then(() => console.log('complete'));
  }
}

enter image description here

This code works perfectly fine but why do I get this syntax error

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I'm not sure, but shouldn't it be

import { AngularFireFunctions as Functions } from '@angular/fire/compat/functions';

instead?

Based on functions docs.

So, it could be used as this.fns.httpsCallable('test').

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!