question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

@nebular/firebase-auth is not compatible with firebase v8

See original GitHub issue

Issue type

I’m submitting a … (check one with “x”)

  • bug report
  • feature request
  • question about the decisions made in the repository

Issue description

Current behavior: For project with firebase v8 @nebular/firebase-auth is not working, with the following error:

ERROR in <…>/node_modules/@nebular/firebase-auth/ivy_ngcc/fesm2015/index.js 323:29-33 "export ‘auth’ was not found in ‘firebase/app’

Expected behavior:

According to https://firebase.google.com/support/release-notes/js

Breaking change: browser fields in package.json files now point to ESM bundles instead of CJS bundles. Users who are using ESM imports must now use the default import instead of a namespace import.

Before 8.0.0 import * as firebase from ‘firebase/app’

After 8.0.0 import firebase from ‘firebase/app’

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
MohamedRedcommented, Nov 20, 2020

I get this as well:

ERROR in node_modules/@nebular/firebase-auth/strategies/base/firebase-base.strategy.d.ts:4:34 - error TS2694: Namespace ‘“/Users/MRR/Developer/ngx-admin/node_modules/firebase/index”’ has no exported member ‘auth’.

4 import UserCredential = firebase.auth.UserCredential; ~~~~ node_modules/@nebular/firebase-auth/strategies/password/firebase-password.strategy.d.ts:1:10 - error TS2614: Module ‘“…/…/…/…/firebase”’ has no exported member ‘User’. Did you mean to use ‘import User from “…/…/…/…/firebase”’ instead?

1 import { User } from ‘firebase’; ~~~~

This might help: issue: https://github.com/anthonynahas/ngx-auth-firebaseui/issues/179 solution: https://github.com/AnthonyNahas/ngx-auth-firebaseui/commit/73ca9b986cf0fa300898f3890e8ec4440005d7d9

0reactions
n0mercommented, Dec 25, 2020

@fncap PR akveo/nebular#2584 got merged recently.

upd: included into 7.0.0-beta.2

Read more comments on GitHub >

github_iconTop Results From Across the Web

Upgrade from version 8 to the modular Web SDK - Firebase
The upgrade steps in this guide will be based around an imaginary web app that uses the Authentication and Cloud Firestore SDKs. By...
Read more >
firebase error (auth/admin-restricted-operation) - You.com
I intend to use Firestore as my database of choice. I, however, cannot seem to get a user registered without the error popping...
Read more >
Using Firebase - Expo Documentation
Your app requires access to Firebase services not supported by the Firebase JS SDK, such as Dynamic Links, Crashlytics, and so on. ·...
Read more >
React Native Firebase
To get started, you must first setup a Firebase project and install the "app" module. ... Flipper: use_frameworks is not compatible with Flipper....
Read more >
'firebase/app' does not contain a default export (imported as ...
With version 9 things changed a bit for importing firebase, ... v9 compat packages are API compatible with v8 code import firebase from ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found