Description
Operating System
macOS
Environment (if applicable)
vite@5
Firebase SDK Version
"firebase": "10.13.1", "@firebase/functions": "0.11.7"
Firebase SDK Product(s)
Functions
Project Tooling
vite@5
Detailed Problem Description
In my setup FunctionsError is resolved from ./node_modules/@firebase/functions/dist/functions-public.d.ts
And it's not a class although an implementation exist in the bundle ./node_modules/firebase/firebase-functions.js
Vite output:
Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/firebase_functions.js?v=bd8c5d40' does not provide an export named 'FunctionsError' (at callable.ts:3:3)
Could you pls export FunctionsError as class for better error handling?
Steps and code to reproduce issue
import { FirebaseError } from 'firebase/app';
import {
FunctionsError,
} from 'firebase/functions';
console.log({ FunctionsError });