[Bug Report] vite plugin - missing vuetify components when autoImport is false
See original GitHub issueWhen running vite plugin with vuetify({ styles: 'expose', autoImport: false }),
Importing components this way:
import { VApp, VMain, VAppBar, VImg, VRow, VCol, VContainer } from 'vuetify';
Ends up with browser error:
Uncaught SyntaxError: The requested module '/node_modules/.vite/vuetify.js?v=7bedb03f' does not provide an export named 'VApp'
While importing from vuetify/dist
produces following error:
11:29:22 AM [vite] Internal server error: Failed to resolve import "vuetify/dist" from "src/App.vue". Does the file exist?
Plugin: vite:import-analysis
File: /home/lromanowicz/projects/frontend/src/App.vue
1 | import { defineComponent } from "vue";
2 | import { VApp, VMain, VAppBar, VImg, VRow, VCol, VContainer } from "vuetify/dist";
| ^
3 | import { useAuth, LOGOUT_URL } from "./composables/useAuth";
4 | import Icon from "./components/atoms/Icon.vue";
at formatError (/home/lromanowicz/projects/frontend/node_modules/vite/dist/node/chunks/dep-0ed4fbc0.js:44595:46)
Plugin 1.0.0-alpha.2 Vuetify 3.0.0-alpha.11 Vite 2.3.8
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Getting error in vite ,vue2 project with vuetify [[vuetify:import] (0 ...
I am using vue 2 and is trying to migrate to vite. But vuetify is causing some error as shown below
Read more >Frequently asked questions — Vuetify
Vuetify is a Material Design component framework for Vue.js. It aims to provide all the ... How do I report a bug or...
Read more >import vue from 'vue' window.vue = vue; error - You.com
This is a problem with a particular version of vue-cli. Installing the latest and starting a new project resolves the issue. Or alternately...
Read more >A curated list of awesome things related to Vue.js
Includes fully featured user-authentication components, CRUD actions for the user's notes, and Vuex store modules. Vuejs Shopping Cart - ...
Read more >quasar-app-extension-ssg - npm package - Snyk
We found a way for you to contribute to the project! Looks like quasar-app-extension-ssg is missing a security policy. You can connect your...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Keep in mind that this currently will not be picked up by the vite plugin, so customisations to any variables used in components won’t be applied.
https://youtrack.jetbrains.com/issue/WEB-40509
Weird that you’re getting that in a typescript file though, I only got it with js. What version of webstorm is that?
You need to update Vue