Vue: Empty $scopedSlots

Created on 25 Jul 2017  ·  1Comment  ·  Source: vuejs/vue

Version

2.4.2

Reproduction link

https://jsfiddle.net/u4w64n62/1/

Steps to reproduce

Click run on jsfiddle and see console

What is expected?

Here is example with $scopedSlots

What is actually happening?

It's not working!
Error in render function: "TypeError: this.$scopedSlots.default is not a function"

>All comments

You are not using the scoped slot syntax (instead you pass <emited> as a normal slot), so of course this.$scopedSlots.default is empty.

Please read the documentation here: https://vuejs.org/v2/guide/components.html#Scoped-Slots

If that doesn't help, ask on forum.vuejs.org or chat.vuejs.org

Was this page helpful?
0 / 5 - 0 ratings