viandwi24 / nuxt3-awesome-starter

a Nuxt 3 template and boilerplate with a lot of useful features. Nuxt 3 + Tailwindcss + Nuxt Layer
https://nuxt3-awesome-starter.vercel.app
1.69k stars 361 forks source link

[typescript template] not working - help wanted #53

Closed FranciscoKloganB closed 1 year ago

FranciscoKloganB commented 1 year ago

Just downloaded the project. Installed all dependencies with pnpm, shamefully hoist and all those caveats known in PNPM.

Changed a few things in About page and then I noticed something.

I am getting Type checking in ts files. I am also getting Type checking within .vue files within the <script> tags.

image

However, when it comes to getting Type checking I do not get any type checking regarding props of imported components. I only get type inference for things within the "self" script tag.

See below:

image image

Basically, any component that is external to the current file, used in template is being typed as any. I have no clue why this is happening. Do you have any ideia?

FranciscoKloganB commented 1 year ago

Uninstalled @nuxt/content, the problem is fixed.

I also appears is a known issue, but no answers from codeowners: https://github.com/nuxt/content/issues/1358