You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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';