Skip to content
Advertisement

Vue router-view isn’t displaying all views

Sorry for the heavy text. All of my router-views work, except for one, which shows blank. I do not see any console errors of warnings and the format is identical between views – the only difference is the template. This was working, but I started a new project because my package.json and dependencies got messy. I’ve read through the code ad nauseum and I just can’t work out why it wont show. The code is condensed as there’s lots. If you prefer, here’s a link to a sandbox: https://codesandbox.io/s/condescending-monad-5o8qw

JavaScript

and here is my router:

JavaScript

and app.Vue to display the router view…

JavaScript

How can I find the root cause of this issue (pun intended)?

Advertisement

Answer

As you are using Vue 3, you need to use vue-star-rating@next

JavaScript

in package.json, it should be

JavaScript

and use the new new syntax as well

JavaScript

Here is the working codesandbox:

https://codesandbox.io/s/little-sea-xccm4?file=/src/views/ReviewMovie.vue

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement