LoginSignup
16
2

More than 3 years have passed since last update.

Vue3の環境にVuetifyがインストールできない

Posted at

Vue3の環境にVuetifyがインストールできない

vue add vuetifyを実行した時、次のようなエラーがでて、インストールが完了しません。

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

解決策

vuetify3がリリースされるまで待つ

以下の試したことを実行すると上のエラーは解消するが別のエラーがでて動きません。

試したこと

main.jsに次のコードを書いてから、vue add vuetifyを実行する。

new Vue({
    render: h => h(App),
}).$mount('#app');
16
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
16
2