codediodeio / sveltefire

Cybernetically enhanced Firebase apps
MIT License
1.67k stars 127 forks source link

Issue with doc and collection #157

Closed princekumar036 closed 5 months ago

princekumar036 commented 5 months ago
<script>
    import { Doc, Collection } from 'sveltefire';
</script>

<Doc ref={'coll/id'} let:data>
    // do something
</Doc>

// or 
 
<Collection ref={'coll'} let:data>
    // do something
</Collection>

Both the components cause the same error: Uncaught (in promise) FirebaseError: Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore