Open utterances-bot opened 1 year ago
Since Nuxt 3 got released today, I made a pull request updating from rc1 to stable: https://github.com/CodyBontecou/nuxt3-and-vuetify/pull/7
Nuxt 3 + Vuetify 3 = Rapid Development :)
Hey Cody, thanks for the useful tut! I was wondering if you knew a way to manipulate the vuetify sass variables using this setup? 🙏
Also did you manage to get the theme configuration working? When I tried this the colors did not change according to my configuration. Cheers 🍻
// plugins/vuetify.ts
import { createVuetify, ThemeDefinition } from "vuetify";
import { VBtn, VApp } from "vuetify/components";
const theme: ThemeDefinition = {
dark: false,
colors: {
primary: "#4093ff",
secondary: "#4d4d4d",
success: "#25c760",
warning: "#ffc82e",
error: "#ff4c29",
},
};
export default defineNuxtPlugin((nuxtApp) => {
const vuetify = createVuetify({
theme: {
themes: {
theme,
},
},
components: {
VApp,
VBtn,
},
ssr: true,
});
nuxtApp.vueApp.use(vuetify);
});
How can I use use-display()
inside a component with this configuration?
For me works to override some sass variables css: [ 'vuetify/styles', '@mdi/font/css/materialdesignicons.min.css', ],
How to get Nuxt3, Vuetify3 and Cypress or Storybook for component testing running? This would be an ideal setup. Either 2 of them go together well.
I followed the steps you mentioned, and everything worked fine until I want to use <v-date-picker />
where I am getting this error:
[Vue warn]: Failed to resolve component: VDatepicker
How to fix this ? Thanks you, Billal Begueradj
Hey @begueradj, do you have a repo I can look at? Do any of the other Vuetify components work?
The v-date-picker
component came out in Vuetify v3.3.4 so make sure your Vuetify package is up to date.
Ah, wonderful!
Hi, I am having quite a few problems with vuetify 3, having said that I am also having the same problems with the repo marked above. Here is the warn code: WARN [nuxt] Cannot extract styles for ./VCode.css. Its styles will not be inlined when server-rendering.
How to use Vuetify with Nuxt 3 | Cody Bontecou
Get Vuetify to work with Nuxt 3 with this quick tutorial.
https://codybontecou.com/how-to-use-vuetify-with-nuxt-3.html