-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
export 'SDK_VERSION' was not found in 'firebase/app' #2071
Comments
I had to downgrade "@angular/fire": "5.1.1" to get it working |
For ones dealing with this error when running SSR build, I manage to bypass the error by temporary adding the following section in
|
@stot3 Yes you are right, it happens to me also, but I guess it is a different issue. |
Hey everyone. This is not specifically an AngularFire issue, so please check out the official repo for more info: https://github.com/firebase/firebase-js-sdk |
@davideast I could not access the link you provided: https://github.com/FirebasePrivate/firebase-js-sdk |
Hey @davideast, I believe this is a legit issue and it originates inside this repo. In node_modules I can see the source of the error in
The warning says SDK_VERSION is not exported by firebase/app:
So when you try to run
Can you please look into it? This seems to be a broken release, at least for doing Universal. |
@xiongemi Sorry! Wrong repo. Here's the real deal: https://github.com/firebase/firebase-js-sdk |
@inorganik Thanks for pinning that down. I was assuming this was an export of the js-sdk, and I was totally wrong. @jamesdaniels It appears the version check is breaking things on Universal. Let's dig later. |
I am also facing the same issue please help me out. |
if you solved this problem, can you share the solution please? |
Version info
Angular:
7.2.13
Firebase:
5.10.0
AngularFire:
5.1.2
Other (e.g. Ionic/Cordova, Node, browser, operating system):
How to reproduce these conditions
when run the the build, i got this warning:
WARNING in ./node_modules/@angular/fire/firestore/firestore.js 23:50-61
"export 'SDK_VERSION' was not found in 'firebase/app'
@ ./node_modules/@angular/fire/firestore/public_api.js
@ ./node_modules/@angular/fire/firestore/index.js
@ ./dist/server/main.js
@ ./server.ts
Failing test unit, Plunkr, or JSFiddle demonstrating the problem
Steps to set up and reproduce
Sample data and security rules
<-- include/attach/link to some json sample data (or provide credentials to a sanitized, test Firebase project) -->
Debug output
** Errors in the JavaScript console **
** Output from
firebase.database().enableLogging(true);
**** Screenshots **
Expected behavior
Actual behavior
The text was updated successfully, but these errors were encountered: