mvrlin / nuxt-viewport

🌈 Define custom viewports for your Nuxt project
117 stars 7 forks source link

Typescript VSCode error #37

Closed dtrinh100 closed 1 year ago

dtrinh100 commented 1 year ago

When using the viewport property in nuxt.config.ts, I am seeing this error:

Object literal may only specify known properties, and 'viewport' does not exist in type 'InputConfig<NuxtConfig, ConfigLayerMeta>'.

My nuxt.config.ts file:

export default defineNuxtConfig({
  modules: [
    "nuxt-viewport",
  ],
  viewport: {
    // breakpoints set
  },

});

I am using Nuxt 3.5.1. Is there a way to get rid of the error? It also looks like the module is not being auto imported.

mvrlin commented 1 year ago

@dtrinh100 Hey, what's the version of nuxt-viewport are you using?

image