You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, sorry if this is a stupid question - I am still quite new to Vue and Nuxt. I have been trying to set up a dark/light mode toggle in my Vuetify/Nuxt 3 project . I have attempted to use something like this Stack Overflow
However, I was unable to import the $vuetify variable in this way, so I tried creating a vuetify.client.js plugin and using the vuetify:ready hook as follows from the documentation:
I am able to later access this, but I can't seem to make it work this way - I don't know if the hook is read only or what to change exactly. Could someone please guide me? What is the best practice?
I have SSR disabled and the vuetify.config.ts set up correctly.
my nuxt.config.ts is as follows:
You don't need to remove any page, use nuxt generate command to generate the SPA, with SSR disabled you will see some hint about this when running the command: when using nuxt generate with SSR enabled, all your pages will be prerendered (SSG).
Hi, sorry if this is a stupid question - I am still quite new to Vue and Nuxt. I have been trying to set up a dark/light mode toggle in my Vuetify/Nuxt 3 project . I have attempted to use something like this Stack Overflow
However, I was unable to import the $vuetify variable in this way, so I tried creating a vuetify.client.js plugin and using the vuetify:ready hook as follows from the documentation:
I am able to later access this, but I can't seem to make it work this way - I don't know if the hook is read only or what to change exactly. Could someone please guide me? What is the best practice?
I have SSR disabled and the vuetify.config.ts set up correctly.
my nuxt.config.ts is as follows:
Thank you!
The text was updated successfully, but these errors were encountered: