nuxt-community / vuetify-module

Vuetify Module for Nuxt 2
Other
630 stars 106 forks source link

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

Open MartinX3 opened 2 years ago

MartinX3 commented 2 years ago

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 commented 1 year ago

@MartinX3 Did you found any fix for that?

MartinX3 commented 1 year ago

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',
            },
        ],