Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeepAlive with RouterView errors during SSR #778

Closed
gryphonmyers opened this issue Feb 19, 2021 · 1 comment
Closed

KeepAlive with RouterView errors during SSR #778

gryphonmyers opened this issue Feb 19, 2021 · 1 comment

Comments

@gryphonmyers
Copy link

gryphonmyers commented Feb 19, 2021

Version

4.0.3

Reproduction link

https://github.com/gryphonmyers/vite-minimal-repro/tree/vue-router-repro

Run the "build" script to see the error.

Steps to reproduce

  1. Create a wrapper component using the suggested setup of:
<router-view v-slot="{ Component }">
      <keep-alive>
        <component :is="Component" />
      </keep-alive>
    </router-view>
  1. Configure a test route to render with any component
  2. Attempt to SSR render that route

What is expected?

The wrapper component should be rendered as if the keep-alive wrapper were not there during SSR, then in client build, the SSR output should be preserved even while loading an async view component.

What is actually happening?

SSR build errors and cannot complete as long as keep-alive component is used.

@gryphonmyers
Copy link
Author

This was a core bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant