Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FR] Export Errors For Use #1741

Closed
enchorb opened this issue Jun 4, 2022 · 2 comments
Closed

[FR] Export Errors For Use #1741

enchorb opened this issue Jun 4, 2022 · 2 comments

Comments

@enchorb
Copy link

enchorb commented Jun 4, 2022

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

@google-oss-bot
Copy link

I found a few problems with this issue:

  • I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
  • This issue does not seem to follow the issue template. Make sure you provide all the required information.

@lahirumaramba
Copy link
Member

The correct import should be import { FirebaseError } from 'firebase-admin';. Could you please check if that works for you? I think this is a duplicate of #1666. Let's close this and continue the discussion in #1666

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants