Trouble with Vue 3 and Vue Router 4 #89
-
Hi, I'm trying to use vue3-sfc-loader with Vue 3 and Vue Router 4. This is my code:
So, I've got two routes, Home and Contacts, and everything works fine when I visit for the first time each route, but when I switch to the other route (for example: Home -> Contacts -> Home) the page gets broken and I've got these errors/warning in my console:
If I define the components without using the
then everything works, so it could be an issue related to vue3-sfc-loader, I think. Please, do you have a working example using Vue3 and Vue Router 4? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Problem solved: my .vue component templates were not correctly wrapped in a single
instead of:
so the page was breaking after the first |
Beta Was this translation helpful? Give feedback.
-
see. #172 |
Beta Was this translation helpful? Give feedback.
Problem solved: my .vue component templates were not correctly wrapped in a single
<div>
, like this:instead of:
so the page was breaking after the first
<div>
.