Skip to content

[Bug report]rendering exceptions when using teleport #127

Description

@yyyanghj

Bug report

Description

I have a <Wrapper /> component, which is used in every layout component. If I use <teleport/> in <Wrapper/>, something weird will happen. When I navigate to /about, everything is gone and the whole Vue App is destroyed.

Steps to reproduce

Reproduction link / repo: https://github.com/yyyang1996/for-vuepress-issue-1

  1. Clone this repo.
  2. Build and serve.
yarn install
yarn build
yarn serve
  1. Open http://localhost:5050

vupress-3

  1. Click the button then you link to /about.
  2. The content lost and the whole Vue App is destroyed.

Screenshots

vuepress-1

Expected behavior

vuepress-2

Environment info

  • Browser: Microsoft Edge 90.0.818.46
  • Vuepress version: 2.0.0-beta.12

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions