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

Object literal may only specify known properties, and 'vuetify' does not exist in type 'NuxtConfig'. #492

Open
MartinX3 opened this issue Feb 5, 2022 · 2 comments

Comments

@MartinX3
Copy link

MartinX3 commented Feb 5, 2022

Module version
1.12.3

Describe the bug
IntelliJ tells me this error in nuxt.config.ts, but Vuetify is usable.

TS2345: Argument of type '{ target: "static"; ssr: true; head: { titleTemplate: string; title: string; htmlAttrs: { lang: string; }; meta: ({ charset: string; } | { name: string; content: string; } | { hid: string; name: string; content: string; })[]; link: { ...; }[]; }; ... 6 more ...; build: { ...; }; }' is not assignable to parameter of type 'NuxtConfig'.   Object literal may only specify known properties, and 'vuetify' does not exist in type 'NuxtConfig'.

To Reproduce
Only if needed

Steps to reproduce the behavior:

  1. Open the project with IntelliJ
  2. Open the file nuxt.config.ts
  3. Scroll to vuetify
  4. See error

Expected behavior
No error.

Screenshots
grafik

Additional context
I use the Nuxt Bridge and IntelliJ

@AdrianoCahete
Copy link

@MartinX3 Did you found any fix for that?

@MartinX3
Copy link
Author

MartinX3 commented Dec 4, 2022

Yes, I changed my config to

// https://go.nuxtjs.dev/vuetify
        [
            '@nuxtjs/vuetify',
            {
                // Vuetify module configuration: https://go.nuxtjs.dev/config-vuetify
                optionsPath: '~/plugins/vuetify.options.ts',
            },
        ],

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

2 participants