vuetify-module icon indicating copy to clipboard operation
vuetify-module copied to clipboard

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

Open MartinX3 opened this issue 4 years ago • 2 comments

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

MartinX3 avatar Feb 05 '22 13:02 MartinX3

@MartinX3 Did you found any fix for that?

AdrianoCahete avatar Dec 04 '22 18:12 AdrianoCahete

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

MartinX3 avatar Dec 04 '22 19:12 MartinX3