I am unable to access firebase functions directly on the client side following the steps. I have configured exactly the same in my React Client app
import * as firebase from "firebase"
import 'firebase/firestore'
import 'firebase-functions'
require('dotenv').config()
var config = {
apiKey: process.env.REACT_APP_FIREBASE_API_KEY,
storageBucket: process.env.REACT_APP_FIREBAES_STORAGE_BUCKET,
databaseURL: process.env.REACT_APP_FIREBASE_DATABASE_URL,
projectId: process.env.REACT_APP_FIREBASE_PROJECT_ID
};
// Firebase is being initialized
let fb = firebase.initializeApp(config);
// Firestore is also working
let firestore = firebase.firestore()
// But when I tried to initiate functions it is failing
let functions = firebase.functions()
Uncaught TypeError: firebase.functions is not a function