-
-
Notifications
You must be signed in to change notification settings - Fork 522
-
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:
import { createApp } from 'vue'
const app = createApp({});
app.use(VueApollo);
...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
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment