Skip to content

TypeError when route-link with sibling slot used #4584

@Darkside73

Description

@Darkside73

Vue.js version

2.1.7

Reproduction Link

https://jsfiddle.net/1anum7y4/1/

This template fails to compile if no default slot given

<p>
  <router-link :to="{ name: 'foo' }">foo</router-link>
  <slot></slot>
</p>

It does not reproduce if slot given or <slot></slot> wrapped by any tag

What is Expected?

Component renders without slot

What is actually happening?

Uncaught TypeError: Cannot set property 'isRootInsert' of undefined

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions