-
-
Notifications
You must be signed in to change notification settings - Fork 523
Vue 3 compatibility #972
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Because version 3.x is not supposed to work with Vue 3. There's version 4 (See releases) which is in alpha stage and that's what you're looking for. Sadly it's not yet working with Vue 3 but only with Vue 2 + vue-composition-api plugin. |
Is there anyway I can try out the new version? I can't seem to find it listed on npm |
@khaledosman you can use |
Is there currently a version which works with Vue 3? |
I use yarn add vue-apollo@next to report an error Uncaught TypeError: Object.defineProperty called on non-object @ozguruysal |
Might be useful: #1011 (comment) |
vue3 is giving this error because vue3 is in beta version if you use vue2 you solve your problem. My error is solved by this solution. |
I don't find any 4.x packages published right now to work with. |
@lancegliser The new v4 versions are released in new packages as you can see in the new v4 docs (links wayyy at the bottom): https://v4.apollo.vuejs.org/guide/installation.html#next-steps |
@beeequeue The primary install documentation on that page points me to the plugin. In the generator function for that plugin, I see it trying to install vue-apollo@^3.0.0-beta.11 at this time. Looking at the section for next steps I just don't see any new packages listed. Even if there were, the plugin wouldn't appear to install them. I think I'm missing something you're referring to. Could you elaborate please? |
The plugin hasn't been updated to support Vue 3 or vue-apollo 4, and the docs referring to the plugin can therefore also not been updated yet. Simply click on the links at the bottom and it will tell you how to use and install each of the packages that have been created. |
@noobling That's not Vue 3. It's Vue 2 + Composition API plugin. |
@MarvinRudolph I made a working vue3 example here https://github.com/noobling/vue3-apollo-example/blob/master/src/main.js its not too hard to do. The key is the patch. Im sure you can improve the example if so please make a contrib. |
@noobling Thank you for this! |
See #1011 (comment) |
Closing an issue before it's resolved on a tagged release of the master branch is bad practice. Please keep issues open until they're actually fixed. |
Well, let's try react. |
I'm getting the same/similar Object.defineProperty error when trying to use
What I would like to see is a) these packages actually working with Vue 3 and b) documentation that showed how to set it up (if they already do work). And I agree, closing this issue when it clearly isn't resolved is very odd... |
@laddi-netapp |
That's all fine and dandy, but I'm trying to use |
I'm confused, did anyone manage to use @vue/apollo-option along with Vue 3? |
@entermix yes, look at https://v4.apollo.vuejs.org/ |
We gave up trying to get it working and decided to stick with Vue 2 until this has been resolved... |
@Zippersk You tried? |
@entermix yes, I am using this npm package and everything works. |
Describe the bug
When running
vue add apollo
it fails with this error
After doing the manual setup instead, the app throws this error
or
To Reproduce
vue create app
vue add vue-next
vue add vue-apollo
or check this sample repo https://github.com/khaledosman/learning-vue
Expected behavior
Versions
vue: 3.0.0-beta.1
vue-apollo: 3.0.3
apollo-client: apollo-boost v0.4.7
main.js
The text was updated successfully, but these errors were encountered: