Skip to content
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

TypeError: this._watchers is undefined #14

Open
cscott opened this issue Jul 15, 2022 · 2 comments
Open

TypeError: this._watchers is undefined #14

cscott opened this issue Jul 15, 2022 · 2 comments

Comments

@cscott
Copy link

cscott commented Jul 15, 2022

When following the instructions in the tutorial, step 2 (checked w/ the sample sources) never updates the view from the DB.
The problem seems to be this error in console: TypeError: this._watchers is undefined, being thrown from from https://github.com/meteor-vue/vue-meteor-tracker/blob/64b736ef41d9ebc0958533d796fd6bcffaee380a/dist/vue-meteor-tracker.esm.js#L1972

Looking back, this appears to be a bug even with the meteor create --vue template.

@YstFA
Copy link

YstFA commented Aug 10, 2022

experiencing the same problem

@kostya-fr
Copy link

kostya-fr commented Oct 7, 2022

Same for me. Tutorial seems to be outdated. BTW can't understand why tasks() method is outside of methods :

  methods: {},
  meteor: {
    tasks() {
      return TasksCollection.find({}).fetch();
    }
  }

Edit. Task component missing parentheses. So it works with v-for="task in tasks()" and :

  methods: {
    tasks() {
      return TasksCollection.find({});
    }
  }

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

3 participants