meteor / vue-tutorial

14 stars 18 forks source link

TypeError: this._watchers is undefined #14

Open cscott opened 2 years ago

cscott commented 2 years ago

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 commented 2 years ago

experiencing the same problem

kostya-fr commented 1 year ago

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({});
    }
  }