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

FirebaseAuthError, FirebaseError, FirebaseMessagingError doesn't export #1340

Open
deconstruction10 opened this issue Aug 9, 2022 · 0 comments

Comments

@deconstruction10
Copy link

deconstruction10 commented Aug 9, 2022

Hello, I'm using credentials FirebaseAuthError, FirebaseError, FirebaseMessagingError but they don't export. My dependencies: firebase-admin: ^11.0.1, nestjs-firebase: ^8.2.3, nestjs version: 8.2. Do you can help me, please

node:internal/modules/cjs/loader:488
[0] throw e;
[0] ^
[0]
[0] Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/utils/error' is not defined by "exports" in F:\dashboard\dashboard-nest-api\node_modules\fire
base-admin\package.json
[0] at new NodeError (node:internal/errors:371:5)
[0] at throwExportsNotFound (node:internal/modules/esm/resolve:440:9)
[0] at packageExportsResolve (node:internal/modules/esm/resolve:692:3)
[0] at resolveExports (node:internal/modules/cjs/loader:482:36)
[0] at Function.Module._findPath (node:internal/modules/cjs/loader:522:31)
[0] at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:27)
[0] at Function.Module._load (node:internal/modules/cjs/loader:778:27)
[0] at Module.require (node:internal/modules/cjs/loader:1005:19)
[0] at require (node:internal/modules/cjs/helpers:102:18)
[0] at Object. (F:\dashboard\dashboard-nest-api\build\financialAnalyst\financialAnalyst.service.js:23:17)
[0] at Module._compile (node:internal/modules/cjs/loader:1101:14)
[0] at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
[0] at Module.load (node:internal/modules/cjs/loader:981:32)
[0] at Function.Module._load (node:internal/modules/cjs/loader:822:12)
[0] at Module.require (node:internal/modules/cjs/loader:1005:19)
[0] at require (node:internal/modules/cjs/helpers:102:18) {
[0] code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
[0] }

import {FirebaseAuthError, FirebaseError, FirebaseMessagingError} from "firebase-admin/lib/utils/error";
return validationDataFinancialAnalyst$.pipe(
switchMap(err => iif(
() => Array.of(err).every(data => data === data),
from(this.rmq.send('', 'Valid data')),
throwError(err => of(new FirebaseMessagingError({code: '400', message: 'Data aren't valid'}))),
))
)

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

No branches or pull requests

1 participant