I am using the Vuetify 3 beta with vue-cli v5, but when I try to use v-app-bar in my template, I get Error: Could not find injected Vuetify layout
I am using the Vuetify 3 beta with vue-cli v5, but when I try to use v-app-bar in my template, I get Error: Could not find injected Vuetify layout
This just happened to me. The cause was that I had the v-app-bar outside of the v-app. Moving it inside fixed it.
This error occurs when you forget to wrap your vuetify code inside the v-app tag. To fix that add the v-app tag as shown in the code below:
<v-app>
<v-app-bar title="My site" app>
</v-app-bar> <!-- Your appBar goes here -->
</v-app>