quasarframework / quasar

Quasar Framework - Build high-performance VueJS user interfaces in record time
https://quasar.dev
MIT License
25.97k stars 3.53k forks source link

Quasar vite unable to load unplugin-vue-components resolvers #13297

Closed lukadriel7 closed 2 years ago

lukadriel7 commented 2 years ago

What happened?

using unplugin-vue-components vite plugin in quasar.config.js doesn't auto import components defined by resolvers.

What did you expect to happen?

unplugin-vue-components resolvers should auto-import components when configured in quasar.conf.js

Reproduction URL

https://github.com/lukadriel7/quasar-vite-template

How to reproduce?

  1. Clone github repository
  2. Install dependencies
  3. Uncomment <use-mouse> component in src/IndexPage.vue
  4. Run quasar dev and open browser console

Flavour

Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)

Areas

Quasar CLI Commands/Configuration (@quasar/cli | @quasar/app-webpack | @quasar/app-vite)

Platforms/Browsers

No response

Quasar info output

Operating System - Windows_NT(10.0.19044) - win32/x64
NodeJs - 16.14.2

Global packages
  NPM - 8.7.0
  yarn - 1.22.18
  @quasar/cli - 1.3.2
  @quasar/icongenie - 2.5.1
  cordova - You have been opted out of telemetry. To change this, run: cordova telemetry on.
11.0.0

Important local packages
  quasar - 2.6.6 -- Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time
  @quasar/app-vite - 1.0.0-beta.14 -- Quasar Framework App CLI with Vite
  @quasar/extras - 1.13.5 -- Quasar Framework fonts, icons and animations
  eslint-plugin-quasar - Not installed
  vue - 3.2.33 -- The progressive JavaScript framework for building modern web UI.
  vue-router - 4.0.14
  pinia - 2.0.13 -- Intuitive, type safe and flexible Store for Vue
  vuex - Not installed
  vite - 2.9.1 -- Native-ESM powered web dev build tool
  eslint - 8.14.0 -- An AST-based pattern checker for JavaScript.
  electron - Not installed
  electron-packager - Not installed
  electron-builder - Not installed
  register-service-worker - 1.7.2 -- Script for registering service worker, with hooks
  @capacitor/core - Not installed
  @capacitor/cli - Not installed
  @capacitor/android - Not installed
  @capacitor/ios - Not installed

Quasar App Extensions
  *None installed*

Networking
  Host - DESKTOP-N4FUNQD
  vEthernet (Default Switch) - 172.19.176.1
  WiFi - 192.168.1.70

Relevant log output

No response

Additional context

I am trying to auto-import @vueuse/components in my quasar project

lukadriel7 commented 2 years ago

Hello, The problem is not with quasar, but the unplugin-vue-components package, specifically the VueUseComponentsResolver. I will close this issue.