Hi,
When I try to upgrade the vue package from 2.6.14 to 2.78, my application stops working.
I get on the console, the following error:
[Vue warn]: Error in created hook: "TypeError: Cannot read properties of undefined (reading 'find')"
found in
---> <App>
<Root>
The source code is the following:
export default {
meteor: {
$subscribe: {
notifications: []
},
notifications() {
return Notifications.find({});
}
did someone already upgrade to 2.7.8?
Thanks
2 Likes
Thanks for your post! I was just trying to get back up and running with Vue.js + Meteor last night and got discouraged when I hit this issue and couldn’t find any support.
akbay
January 23, 2023, 8:54am
5
harry73
December 25, 2023, 4:38pm
6
@davidfishman the only solution is to stay with vue 2.6.14.
akbay
December 27, 2023, 2:16am
7
I don’t remember what solved the issue. But I am using the following setup and it works now:
METEOR@2.13.3
packages:
akryum:vue-component
akryum:vue-router2
akryum:vue-less
akryum:vue
package.js:
"vue": "^2.7.14",
"vue-cookie-law": "^1.13.3",
"vue-meteor-tracker": "^2.0.0",
"vue-router": "^3.6.5",
"vuetify": "^2.7.1",
"vuetify-form-base": "^0.3.3",
"vuex": "^3.6.2",
mounted() {
this.$subscribe('projects', () => []);
this.$autorun(() => {
this.projects = Projects.find({}).fetch();
});
},