Open cscott opened 2 years ago
experiencing the same problem
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({});
}
}
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#L1972Looking back, this appears to be a bug even with the
meteor create --vue
template.