Closed
Description
Vue version
3.5.14+
Link to minimal reproduction
https://github.com/uandco/vuejs-314-slots-bug
Steps to reproduce
Run npm install
Run vite
Go to http://localhost:8080
Page displays OK
Change "vue": "3.5.13"
to "vue": "3.5.14"
or later
Run npm install
Run vite
Go to http://localhost:8080
Page doesn't display, throws:
uuFaq.vue:5 Uncaught TypeError: item is not a function
at uuFaq.vue:5:36
at Proxy._sfc_render (uuFaq.vue:1:1)
What is expected?
Iterating slots and extracting props from them should work as it did in Vue 3.5.13 and below
What is actually happening?
It doesn't work when loading the page, getting this:
TypeError: item is not a function
at uuFaq.vue:5:36
at renderList (runtime-core.esm-bundler.js:2935:18)
at Proxy._sfc_render (uuFaq.vue:1:1)
But changing something in the App.vue
and letting Vite hot-reload it makes it work.
It never works for built assets though.
System Info
Any additional comments?
It might be related to 5d166f3