-
-
Notifications
You must be signed in to change notification settings - Fork 27
Could not find injected layout when using v-app-bar component #310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
can you provide a minimal reproduction 🙏 ? |
Here is reproduction https://github.com/ATLCode/test-app Tried without pinia and still causes crash, but this time maybe the error message is more useful. I put the v-app-bar in this case straight to app.vue, but tried it in the index page as well to confirm same result.
I should have done this to begin with, sorry about that. |
Wrap your application into v-app before using layout-related components. |
That seems to work. Thank you and my bad for incorrect setup. Now that I check it does say in vuetify's getting started section about this. |
Uh oh!
There was an error while loading. Please reload this page.
Took me a while to track down what was causing this, but here with quite a fresh project I was able to replicate it.
The Issue
After fresh install of nuxt and just adding pinia and vuetify-nuxt-module to the project using
<v-app-bar></v-app-bar>
component from vuetify in any page or component will cause app to crash and result following error:Obviously the error mentions pinia, so the issue might be on their end as well and apologies if I'm reporting at the wrong place. However I figured since the error didn't seem to occur with pinia install alone and everything works fine otherwise, but just crashes when using vuetify component that it might be caused by vuetify-module.
package.json
nuxt.config.ts
The text was updated successfully, but these errors were encountered: