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
I got this error with @vue/cli 4.5.6 and vue 3.0.0 when trying to install.
Thanks.
λ › vue add apollo
📦 Installing vue-cli-plugin-apollo...
yarn add v1.22.10
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
[4/4] 🔨 Building fresh packages...
success Saved 1 new dependency.
info Direct dependencies
└─ [email protected]
info All dependencies
└─ [email protected]
✨ Done in 7.93s.
✔ Successfully installed plugin: vue-cli-plugin-apollo
? Add example code Yes
? Add a GraphQL API Server? No
? Configure Apollo Engine? No
🚀 Invoking generator for vue-cli-plugin-apollo...
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.
Error: You cannot call "get" on a collection with no paths. Instead, check the "length" property first to verify at least 1 path exists.
at Collection.get (/Users/mathieutu/.config/yarn/global/node_modules/jscodeshift/src/Collection.js:213:13)
at injectOptions (/Users/mathieutu/.config/yarn/global/node_modules/@vue/cli/lib/util/codemods/injectOptions.js:15:6)
at runTransformation (/Users/mathieutu/.config/yarn/global/node_modules/vue-codemod/dist/src/run-transformation.js:61:17)
at /Users/mathieutu/.config/yarn/global/node_modules/@vue/cli/lib/Generator.js:290:23
at Array.forEach (<anonymous>)
at Generator.resolveFiles (/Users/mathieutu/.config/yarn/global/node_modules/@vue/cli/lib/Generator.js:276:24)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async Generator.generate (/Users/mathieutu/.config/yarn/global/node_modules/@vue/cli/lib/Generator.js:175:5)
at async runGenerator (/Users/mathieutu/.config/yarn/global/node_modules/@vue/cli/lib/invoke.js:111:3)
at async invoke (/Users/mathieutu/.config/yarn/global/node_modules/@vue/cli/lib/invoke.js:92:3)
The text was updated successfully, but these errors were encountered:
EDIT:
In fine it doesn't work anyway because the provided version and files are not compatible with vue-cli 3. 😞
mathieutu
changed the title
Installation ERROR : Error: You cannot call "get" on a collection with no paths.
Vue3 Installation error : Error: You cannot call "get" on a collection with no paths.Oct 7, 2020
Hi @Akryum.
I got this error with @vue/cli 4.5.6 and vue 3.0.0 when trying to install.
Thanks.
The text was updated successfully, but these errors were encountered: