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: You cannot call "get" on a collection with no paths. Instead, check the "length" property first to verify at least 1 path exists. #992

Closed
helloZh4n opened this issue Sep 8, 2020 · 5 comments
Labels
Status: Need More Info Lacks enough info to make progress

Comments

@helloZh4n
Copy link

A reporter did not know the reason for this mistake

@exoego
Copy link
Collaborator

exoego commented Sep 8, 2020

Could you respect the issue template?

@exoego exoego added the Status: Need More Info Lacks enough info to make progress label Sep 8, 2020
@helloZh4n
Copy link
Author

您可以尊重问题模板吗?
If the problem can't be solved, that's the problem. For me, it's a problem, although it may be a problem for you

@Silbad
Copy link

Silbad commented Sep 25, 2020

Hello, I have the same pb with vue-cli + vue 3

�  Invoking generator for vue-cli-plugin-i18n...
 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.

@waruyama
Copy link

waruyama commented Oct 6, 2020

I have the same problem with Vue 3 and Vue-cli (on Windows 10).

Here is the complete error stack:

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 (C:\Users\currentuser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\jscodeshift\src\Collection.js:213:13)
    at injectOptions (C:\Users\currentuser\AppData\Roaming\npm\node_modules\@vue\cli\lib\util\codemods\injectOptions.js:15:6)
    at runTransformation (C:\Users\currentuser\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\vue-codemod\dist\src\run-transformation.js:61:17)
    at C:\Users\currentuser\AppData\Roaming\npm\node_modules\@vue\cli\lib\Generator.js:290:23
    at Array.forEach (<anonymous>)
    at Generator.resolveFiles (C:\Users\currentuser\AppData\Roaming\npm\node_modules\@vue\cli\lib\Generator.js:276:24)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async Generator.generate (C:\Users\currentuser\AppData\Roaming\npm\node_modules\@vue\cli\lib\Generator.js:175:5)
    at async runGenerator (C:\Users\currentuser\AppData\Roaming\npm\node_modules\@vue\cli\lib\invoke.js:111:3)
    at async invoke (C:\Users\currentuser\AppData\Roaming\npm\node_modules\@vue\cli\lib\invoke.js:92:3)

Edit: Opened an issue in vue-cli: vuejs/vue-cli#5928 (comment)

@kazupon
Copy link
Owner

kazupon commented Oct 6, 2020

See the link:
vue-cli-plugin-i18n hasn't been support for Vue 3...
intlify/vue-cli-plugin-i18n#143

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Need More Info Lacks enough info to make progress
Projects
None yet
Development

No branches or pull requests

5 participants