Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork41
Cannot find name defineProps
ts error #102
Description
In a vue2 + vite + unplugin-vue2-script-setup project i have a ts error (not eslint) on build thatCannot find name defineProps/defineEmits
Here's project's tsconfighttps://github.com/jacekkarczmarczyk/rachunek/blob/master/tsconfig.json and example usage of definePropshttps://github.com/jacekkarczmarczyk/rachunek/blob/master/src/components/BillForm/BillForm.vue#L163 (that's not a minimal repro, but I guess just the settings files are imporant, if you want a minimal repro though let me know)
To reproduce the issue runyarn build
Error can be supressed with// @ts-ignore
but that doesn't sound like a valid solution. Another option is to add .d.ts files withdefineProps
declaration but I think that should be rather provided by the lib (or maybe it is but can't find anything)