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

Related issues

Jokcy picture Jokcy  路  3Comments

seemsindie picture seemsindie  路  3Comments

fergaldoyle picture fergaldoyle  路  3Comments

franciscolourenco picture franciscolourenco  路  3Comments

loki0609 picture loki0609  路  3Comments