question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug Report] vite plugin - missing vuetify components when autoImport is false

See original GitHub issue

When 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:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
KaelWDcommented, Aug 31, 2021

@use 'vuetify/lib/styles/main.sass'; should work

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.

1reaction
KaelWDcommented, Aug 31, 2021

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?

does not provide an export named ‘effectScope’

You need to update Vue

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found