I'm having trouble adding Vuetify 3 to Astro using the Vue integration. This is what I have so far:
import { defineConfig } from 'astro/config'; import vue from '@astrojs/vue'; import vuetify from 'vite-plugin-vuetify'; // https://astro.build/config export default defineConfig({ integrations: [vue()], vite: { ssr: { noExternal: ['vuetify'], }, plugins: [vuetify()], }, });
I get the 'Vuetify plugin must be loaded after the vue plugin'
error.
Not sure how to move on from here. I'm open to all suggestions.
The configuration in the Astro integration (
@astrojs/vue
in this case) is appended to your own Astro configuration, so thevuetify
plugin will Start by registering here.The workaround is to define your own Astro integration and call
updateConfig()
Add validation:And install it after Vue integration :