Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vuetify 3 beta gives "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

like image 567
Marc Fletcher Avatar asked Nov 30 '25 18:11

Marc Fletcher


2 Answers

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.

like image 94
steven2308 Avatar answered Dec 03 '25 09:12

steven2308


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>

  <!-- Your appBar goes here -->
  <v-app-bar  title="My site" app>
  </v-app-bar>  

</v-app>
like image 24
Ged Flod Avatar answered Dec 03 '25 09:12

Ged Flod



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!