vuetifyjs / vue-cli-plugins

🔌 A collection of Vuetify plugins for Vue CLI
https://vuetifyjs.com/en/getting-started/quick-start#vue-cli-3
Other
427 stars 113 forks source link

Error resolving webpackConfig TypeError: Cannot read properties of undefined (reading 'vuetify') #323

Closed Juknum closed 2 years ago

Juknum commented 2 years ago

The following error happened when we tried to install vuetify using vue add vuetify :

Error resolving webpackConfig TypeError: Cannot read properties of undefined (reading 'vuetify')
    at E:\GitHub\AE\sith\node_modules\vue-cli-plugin-vuetify\index.js:24:60
    at E:\GitHub\AE\sith\node_modules\@vue\cli-service\lib\Service.js:268:40
    at Array.forEach (<anonymous>)
    at Service.resolveChainableWebpackConfig (E:\GitHub\AE\sith\node_modules\@vue\cli-service\lib\Service.js:268:26)
    at Service.resolveWebpackConfig (E:\GitHub\AE\sith\node_modules\@vue\cli-service\lib\Service.js:272:48)
    at Object.<anonymous> (E:\GitHub\AE\sith\node_modules\@vue\cli-service\webpack.config.js:12:26)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)

We followed instructions from the official doc and selected the Vuetify 3 Preview (Vuetify 3) preset; we didn't allow nightly build as we only want to be on the latest "stable" version of Vuetify. Then the script started and we got spammed with the error above;

Additional info:

We installed Vue 3 using the CLI and those options below:

image Is there anything we are doing wrong?

You can access the full repo here (without Vuetify since it's not working properly)

Juknum commented 2 years ago

This issue has been mysteriously solved by itself (we may have changed files location/directories setup); I'm closing it