isolatedDeclarations
causing errors in setup when using implicit slots
#5219
Labels
good reproduction ✨
This issue provides a good reproduction, we will be able to investigate it first
Vue - Official extension or vue-tsc version
2.2.4
VSCode version
1.97.2
Vue version
3.5.13
TypeScript version
5.7.3
System Info
package.json dependencies
Steps to reproduce
Button.vue
a. Remove any and all slots from the template
b. Use
defineSlots
in setupc. Disable
isolatedDeclarations
intsconfig.app.json
What is expected?
I don't know what the expected behaviour is of
isolatedDeclarations
in SFC files. If vue-tsc can benefit from it then by all means I expect helpful errors to show up in the setup script. Otherwise I don't expect any errors caused byisolatedDeclarations
.What is actually happening?
Errors are reported that probably shouldn't be.
Link to minimal reproduction
https://github.com/PindaPixel/isolated-declarations-vue-repro
Any additional comments?
Interestingly enough I don't see the same error happening in the browser editor: https://github.dev/PindaPixel/isolated-declarations-vue-repro.
Anyhow, for now the workaround is to use
defineSlots
everywhere.The text was updated successfully, but these errors were encountered: