NuxtN
Nuxt5mo ago
5 replies
se.

Problems with component typing in Nuxt 4

I have installed the latest version of Nuxt 4 with default settings and am trying to ensure that the autocomplete tells me the props of the components without importing them (see the example in the screenshot).
Everything starts to work if I create a file of types in the app folder that essentially repeats the contents of the file from .nuxt/types/components.d.ts , without it I get a result like - '(property) 'Icon': any'

What am I missing, how can this be implemented?
image.png
image.png
image.png
image.png
Was this page helpful?