Closed gate3 closed 6 years ago
Same here
Haven't tested Firefox but yes I get this error in chrome
On Fri, May 11, 2018, 9:09 PM Ian Christner notifications@github.com wrote:
Are you getting this error on Chrome? Personally, I only get this error on chrome and my production application retrieves data properly on Firefox.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/angular/angularfire2/issues/1614#issuecomment-388472761, or mute the thread https://github.com/notifications/unsubscribe-auth/ADbkfWYw05hTN9xB72wJBryI42Woxt1dks5txe_ggaJpZM4T6UtH .
There have been quite a few changes in the JS SDK, can you confirm if this is still a problem with Firebase 5.0 and angularfire2@next
If so, you should file an issue with the JS SDK https://github.com/firebase/firebase-js-sdk
same here
Version info
Angular: ^5.0.0-rc.6.0
Firebase: ^4.13.1
AngularFire: ^5.0.0-rc.6.0
Other (e.g. Ionic/Cordova, Node, browser, operating system): Ubuntu 16.04, Chrome
Geofire: ^4.1.2
How to reproduce these conditions
Failing test unit, Plunkr, or JSFiddle demonstrating the problem
Steps to set up and reproduce I have a sample code on github with the exact config I am using. You can find that here
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 @firebase/database: FIREBASE WARNING: Exception was thrown by user callback. TypeError: Cannot read property 'myID' of undefined (Production build only)
Output from
firebase.database().enableLogging(true);
Screenshots
Expected behavior
The app is a location based app so i am using geofire. I expect the app to get the user's current location and use that to fetch nearby locations from firebase.
Actual behavior
As soon as i build the app using ng build --prod and deploy to firebase I am getting the following error
I reported the issue to firebase support and I was told its likely from this line