nuxt / components

Scan and auto import components for Nuxt.js 2.13+
MIT License
887 stars 48 forks source link

How to have typescript inference with this? #251

Open MatthD opened 2 years ago

MatthD commented 2 years ago

Describe the bug On Nuxt V2.15.8/vue2.7 With a components: true I can auto-load any component in the folder BUT how should I deal with typescript ? I don't have props suggestion inside the template now (any):/

Expected behavior Have a way to get all type from component auto imported

Screenshots Capture d’écran 2022-07-29 à 15 27 26

wJoenn commented 1 year ago

@danielroe any idea on this please 🙏 I'm working on a Nuxt 2.13 project and am trying to auto-import some components but having no type checking at all is a problem. I don't get any error if I'm not using a required prop or if I'm using a prop but inputing a value with an incorrect type

BulatSa commented 1 month ago

you need to import components manually, sudenly