Unable to upgrade to vue 2.7.8

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.

Hi, I am having the same issue. @harry73 Did you find a solution?

I found this thread: Cannot read properties of undefined (reading 'find') in Vue.js Meteor - Stack Overflow

@davidfishman the only solution is to stay with vue 2.6.14.

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