You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I've been battling this all day with no luck. I'm trying to upgrade to Vue 3 from 2. I have vue-apollo 3.1.0 installed and I'm running into this error: Uncaught TypeError: Object.defineProperty called on non-object and it points to this line in vue-apollo.
if (!Object.prototype.hasOwnProperty.call(Vue, '$apollo')) {
Object.defineProperty(Vue.prototype, '$apollo', {
get: function get() {
if (!this.$_apollo) {
this.$_apollo = new DollarApollo(this);
}
return this.$_apollo;
}
});
}
Which prototype has been dropped in vue 3 and when I try to run the following:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello! I've been battling this all day with no luck. I'm trying to upgrade to Vue 3 from 2. I have vue-apollo 3.1.0 installed and I'm running into this error:
Uncaught TypeError: Object.defineProperty called on non-object
and it points to this line in vue-apollo.Which prototype has been dropped in vue 3 and when I try to run the following:
...the last line causes the error about the error. I was hoping someone has tried to upgrade before and has ran into this. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions