Skip to content
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

moduleOptions Module Hook doesn't work #290

Open
Fukao0129 opened this issue Nov 22, 2024 · 0 comments
Open

moduleOptions Module Hook doesn't work #290

Fukao0129 opened this issue Nov 22, 2024 · 0 comments

Comments

@Fukao0129
Copy link

I use my own module file as below:

modules/my-vuetify-module.ts

import { defineNuxtModule } from '@nuxt/kit'
export default defineNuxtModule({
    setup(_options, nuxt) {
      nuxt.hook('vuetify:registerModule', register => register({
        moduleOptions: {
           styles: "none" // ← Doesn't work!
          },
          vuetifyOptions: {
            theme: {
              themes: {
                light: {
                  colors: {
                    primary: "#000", // ← Work
                  },
                },
              },
            },
          },
      }))
    },
  })

nuxt.config.ts

import MyVuetifyModule from './modules/my-vuetify-module'
export default defineNuxtConfig({
  devtools: { enabled: false },
  modules: [MyVuetifyModule, 'vuetify-nuxt-module'],
  routeRules: {
    "**": { ssr: false },
  },
});

Even if I change something in moduleOptions, nothing will change.
vuetifyOptions seems to be working because if I change something in it, the changes will be reflected properly.

Something wrong, or a bug?

Reference

vue 3.5.0
nuxt 3.13.0
vuetify-nuxt-module 0.18.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant