Skip to content

vuefire.esm.js?0ff2:186 Uncaught TypeError: Cannot convert undefined or null to object #948

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

Closed
slimack opened this issue Nov 17, 2020 · 1 comment

Comments

@slimack
Copy link

slimack commented Nov 17, 2020

Uncaught TypeError: Cannot convert undefined or null to object
I'm not sure this is a bug, but when I try to bind to property, the error I get is displayed. I have no idea why bind works with one document but not with the entire collection. Because the problem only affects the binding of the entire collection.

Error Message:

vuefire.esm.js?0ff2:186 Uncaught TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at extractRefs (vuefire.esm.js?0ff2:186)
    at Object.added (vuefire.esm.js?0ff2:354)
    at eval (vuefire.esm.js?0ff2:412)
    at Array.forEach (<anonymous>)
    at Array.eval (vuefire.esm.js?0ff2:411)
    at next (index.esm.js?c6c5:16645)
    at eval (index.esm.js?c6c5:13404)

Component script

<script>
import { db } from "../firebase";

export default {
  data() {
    return {
      documents: ["mis"],
      search: ""
    };
  },

  firestore: {
    documents: db.collection("items"),
  },
  },

</script>
@posva
Copy link
Member

posva commented Nov 17, 2020

you probably need to use firebase 7. See #940
Please search existing issues before opening new ones, thank you 🙂

@posva posva closed this as completed Nov 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants