Skip to content
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

Error when installing for Vue 3 #540

Open
nickcoad opened this issue Apr 2, 2021 · 1 comment
Open

Error when installing for Vue 3 #540

nickcoad opened this issue Apr 2, 2021 · 1 comment

Comments

@nickcoad
Copy link

nickcoad commented Apr 2, 2021

When I try to use this on a Vue 3 project by calling vue add apollo, installation fails due to the following error:
Error: You cannot call "get" on a collection with no paths. Instead, check the "length" property first to verify at least 1 path exists.

From what I've read, this plugin is supposed to be compatible with Vue 3, so I'm not sure what I might be doing wrong here?

@MSM74588
Copy link

MSM74588 commented Jun 13, 2021

Same issue.
Tried both on Windows and Linux(ubuntu) but failed.
No files are automatically added and the error shows

EDIT: the Vue apollo CLI plugin works only on Vue CLI 3 and the current version is CLI 4 that's why it was not working for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants