Open ghost opened 8 years ago
Hrm. That doesn't sound right. Can you create a minimal repro including steps and version info?
Getting exact same error using React:
import React, { Component, } from 'react'; import { Linking, Platform, ActionSheetIOS, Dimensions, View, Text, Navigator, } from 'react-native'; import ReactFireMixin from 'reactfire'; import Firebase from 'firebase'; import FirebaseUtil from 'firebase-util';
I am getting the following error:
Error Error: Each argument to the NormalizedCollection constructor must be a valid Firebase reference or an Array containing a Firebase ref as the first argument i@http://192.168.0.100:8100/lib/firebase-util.min.js:9:6773 n@http://192.168.0.100:8100/lib/firebase-util.min.js:9:6478 http://192.168.0.100:8100/js/controllers.js:558:54 invoke@http://192.168.0.100:8100/lib/ionic/js/ionic.bundle.js:17762:22
Here is my data structure:
{ "login": { "user1": "kato" },
"profile": { "user1": { "first": "Kato", "last": "Richardson" } } }
And my code:
var fb = new Firebase("https://xxxxxx.firebaseio.com"); var norm = new Firebase.util.NormalizedCollection( fb.child('login'), fb.child('profile') );
Any idea what am I doing wrong?