Skip to content

Trouble with Vue 3 and Vue Router 4 #89

Closed Answered by vertigofactory
vertigofactory asked this question in Q&A
Discussion options

You must be logged in to vote

Problem solved: my .vue component templates were not correctly wrapped in a single <div>, like this:

<template>
    <div>Content 1</div>
    <div>Content 2</div>
</template>

instead of:

<template>
    <div>
         <div>Content 1</div>
         <div>Content 2</div>
    </div>
</template>

so the page was breaking after the first <div>.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by vertigofactory
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
Category
Q&A
Labels
None yet
2 participants