-
Notifications
You must be signed in to change notification settings - Fork 181
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
Default example produces: Expected first argument to collection() to be a CollectionReference #280
Comments
+1 |
Same error. Any ideas on fix? Thanks. |
Same problem here, can't figure out what is wrong. |
Same error - I've tried multiple versions of the rootRef value, the documentation isn't clear what the value should be. I've also wiped all my rules to a blanket read/write allow and it still fails. In my app, the data is segregated at the top by "clubs" ie my config:
example resource:
The permissions aren't a problem on the customer facing app, so I know I can read and write to the appropriate stores. In my earlier iteration, I had all the "club data" on the top level and it worked fine. |
i have been investigating this for the past 2 days.
it just worked fine with, i tested it with rootRef and without rootRef and seems to work just fine. this is extremely hacky but seems to work for now at least |
Why not just import them from import {
FirebaseAuthProvider,
FirebaseDataProvider,
} from 'react-admin-firebase/dist/src'; |
Here's my basic setup:
I have no problem accessing resources with Firebase library directly:
Also seems to let me on just fine with the test user / pass I setup in Firebase so seems at least the API creds are ok. Since this is my first time using this library, I'm sure it's something really dumb that I'm overlooking? Whenver I add the
<Resource />
into<Admin />
, I get this error:Thanks in advance for any help!
The text was updated successfully, but these errors were encountered: