-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incompatible with Vuetify #591
Comments
Could you provide a reproduction? 🙏 |
Sure, here is the same content from the linked issue:
export default defineNuxtConfig({
modules: ['nuxt-vitest','@nuxt-alt/vuetify']
})
import { defineVitestConfig } from 'nuxt-vitest'
export default defineVitestConfig({})
Following error occurs: > vitest
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Error ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Error: Vuetify plugin must be loaded after the vue plugin
at configResolved (~\node_modules\vite-plugin-vuetify\dist\importPlugin.js:19:23) (as the |
I meant, would you create a runnable reproduction, e.g. from https://stackblitz.com/github/nuxt/starter/tree/v3. |
Added a template you can use: https://stackblitz.com/edit/nuxt-vitest |
Wow, it seems this issue has been already fixed in version Here is a repro using old version with the error: https://stackblitz.com/edit/nuxt-vitest-qahjva?file=package.json You can thus probably link this issue with the closed PR danielroe/nuxt-vitest#148 Though just out of curiosity, maybe you could also provide your feedback regarding if there is a possible workaround with the old version. Thanks anyway! |
I can't find a valid combination to use with Vuetify. I created an issue at
@nuxt-alt/vuetify
, where thevite-plugin-vuetify
causes errorVuetify plugin must be loaded after the vue plugin
:This is caused by
vite:extendConfig
Nuxt hook not having thevite:vue
Plugin accessible, so it can't reorder it. (Usingvite:configResolved
hook instead didn't work either.)Note that this issue only occurs when
vitest.config.mjs
is used, so I assume there may be somenuxt-vitest
-specific zero-config Vite misconfiguration. I'd appreciate any hints about the root cause (or alternatives).The text was updated successfully, but these errors were encountered: