Skip to content

Routes not showing when using transitions and router.push #2444

Discussion options

You must be logged in to vote

I'd be surprised if this is a bug in Vue Router.

I don't see anywhere that you're calling router.push in the reproduction. I tried adding one myself but that seemed to be working for me.

There are some bugs in Vue core with transitions that might be relevant here. Check that your route components only have a single root node, including comments. For example, this can break:

<template>
  <!-- This comment breaks it -->
  <div>
    ...
  </div>
</template>

I believe there's already a PR in the core repo to fix this problem, but I can't tell whether that's relevant to your problem based on the code you've shared.

Also make sure you don't have any warnings or errors in the browser console. I'…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by posva

This comment has been hidden.

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #2439 on January 25, 2025 09:31.