Skip to content

[FR] Export Errors For Use #1741

Closed
Closed
@enchorb

Description

@enchorb

Is your feature request related to a problem? Please describe.
Need to detect if an error is an instanceof FirebaseError

Describe the solution you'd like
Add error utils to module exports so can be used without the error below

Additional context
Currently when import { FirebaseError } from 'firebase-admin/lib/utils/error' get the following error Error: Package subpath './lib/utils/error' is not defined by "exports" in /Users/.../node_modules/firebase-admin/package.json

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions