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
Vuetify 2 isDark issue #603
Comments
Ok i got it working. Here's what I did: In Default.vue I added this code: `<script> export default { And for build I added this code to gridsome.server.js: `const nodeExternals = require('webpack-node-externals'); module.exports = function(api) { |
I think the right way to do this for vuetify 2 is main.js import DefaultLayout from '~/layouts/Default.vue'
import Vuetify from 'vuetify'
import "vuetify/dist/vuetify.min.css"
export default function (Vue, { appOptions }) {
// Set default layout as a global component
Vue.use(Vuetify);
appOptions.vuetify = new Vuetify({});
Vue.component('Layout', DefaultLayout);
} layouts/Default.vue <v-app>
<v-content>
<!-- your code here -->
<v-container fluid>
<slot />
</v-container>
</v-content>
</v-app> |
How do you add vuetify to gridsome |
|
Hi. I can't seem to get Vuetify (2.0) on Gridsome (0.6.7) right. I followed the instructions, added vuetify, whitelisted it in the server config and then when I place a test component, I am not seeing any colors:
The error in the console shows as:
Error in getter for watcher "isDark": "TypeError: this.$vuetify.theme is undefined".
On build I get this error:
I did some research on this issue, and they say I need to wrap in my Default.vue . But when I am wrapping it the screen becomes totally blank.
I also suspect it might have to do something with Vuetify 2.0 and Bootstrapping the Vuetify Object but cant seem to make it right.
Kindly help and guide. Thank you.
The text was updated successfully, but these errors were encountered: