Vuetify: ThemeProvider required but not found after installing

Created on 8 Jan 2020  Â·  4Comments  Â·  Source: vuetifyjs/vuetify

I am getting this error after installing vuetify:

This relative module was not found:

* ../../util/ThemeProvider in ./node_modules/vuetify/lib/components/VDialog/VDialog.js, ./node_modules/vuetify/lib/components/VMenu/VMenu.js

Installation:

vue add vuetify

📦  Installing vue-cli-plugin-vuetify...

+ [email protected]
updated 1 package and audited 24431 packages in 5.199s

34 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

✔  Successfully installed plugin: vue-cli-plugin-vuetify

? Choose a preset: Configure (advanced)
? Use a pre-made template? (will replace App.vue and HelloWorld.vue) Yes
? Use custom theme? Yes
? Use custom properties (CSS variables)? Yes
? Select icon font Font Awesome 5
? Use fonts as a dependency (for Electron or offline)? Yes
? Use a-la-carte components? Yes
? Select locale English

🚀  Invoking generator for vue-cli-plugin-vuetify...
âš“  Running completion hooks...

✔  Successfully invoked generator for plugin: vue-cli-plugin-vuetify
   The following files have been updated / added:

     src/assets/logo.svg
     src/App.vue
     src/components/HelloWorld.vue
     src/main.js
     vue.config.js

   You should review these changes with git diff and commit them.

 vuetify  Discord community: https://community.vuetifyjs.com
 vuetify  Github: https://github.com/vuetifyjs/vuetify
 vuetify  Support Vuetify: https://github.com/sponsors/johnleider

I added one component, Autocomplete:

        <v-autocomplete
            v-model="friends"
            :disabled="isUpdating"
            :items="items"
            filled
            color="blue-grey lighten-2"
            label="Select"
        />

Looking for the specified file reveals that indeed, it does not exist. I tried a variety of options and got the same result each time.

Most helpful comment

I had the same issue after upgrading from 2.1.0 to 2.2.3. Deleted node_modules and run npm install, issue solved.

All 4 comments

Please only create issues with the provided issue creator. In the boilerplate for creating an issue, it explains that any ticket made without this will be automatically closed. For general questions, please join the Discord chat room. You can also check reddit or stackoverflow. Thank you.

I am tackling the same error now, after upgrading from 2.1.15 to 2.2.3

I had the same issue after upgrading from 2.1.0 to 2.2.3. Deleted node_modules and run npm install, issue solved.

I had the same issue after upgrading from 2.1.0 to 2.2.3. Deleted node_modules and run npm install, issue solved.

Not solved, still error after deleted node_modules and run npm install.

After run yarn build, error emerge:

ERROR in ./node_modules/vuetify/lib/components/VDialog/VDialog.js
Module not found: Error: Can't resolve '../../util/ThemeProvider' in './node_modules/vuetify/lib/components/VDialog'
@ ./node_modules/vuetify/lib/components/VDialog/VDialog.js 20:0-53 282:28-41
@ ./node_modules/vuetify/lib/components/VDialog/index.js
@ ./node_modules/vuetify/lib/components/index.js
@ ./node_modules/vuetify/lib/index.js
@ ./client/client-app.js
@ ./client/index-app.js

ERROR in ./node_modules/vuetify/lib/components/VMenu/VMenu.js
Module not found: Error: Can't resolve '../../util/ThemeProvider' in './node_modules/vuetify/lib/components/VMenu'
@ ./node_modules/vuetify/lib/components/VMenu/VMenu.js 23:0-53 423:87-100
@ ./node_modules/vuetify/lib/components/VMenu/index.js
@ ./node_modules/vuetify/lib/components/index.js
@ ./node_modules/vuetify/lib/index.js
@ ./client/client-app.js
@ ./client/index-app.js
error Command failed with exit code 2.

Was this page helpful?
0 / 5 - 0 ratings