D
D
Dmitry Kuznetsov2019-02-20 13:45:52
Vue.js
Dmitry Kuznetsov, 2019-02-20 13:45:52

Cannot read property 'mdAndUp' of undefined error after updating Vuetify, what's wrong?

Hello. So I decided to update Vuetify to the latest Alpha version 2.0.0-Alpha 5. And then errors with "isDark" and so on came up.
Cannot read property 'dark' of undefined
If the code example from the update git gave at least some result, then I still don’t understand how to deal with the second error. Tell me please.
Error code :
Cannot read property 'mdAndUp' of undefined.
Vuetify.js plugin code :

import Vue from 'vue'
import Vuetify from 'vuetify'
import 'vuetify/dist/vuetify.min.css'
import '~/assets/icons/all.min.css'

const options = {
  icons: {
    iconfont: 'fa'
  },

  theme: {
    dark: true,

    themes: {
      light: {
        primary: '#3f51b5'
      },
      dark: {
        primary: '#3f51b5'
      }
    }
  }
}

Vue.use(Vuetify)

new Vue({
  vuetify: new Vuetify(options)
}).$mount('#app')

package.json :
"dependencies": {
    "axios": "^0.18.0",
    "nuxt": "^2.4.3",
    "vee-validate": "^2.1.7",
    "vue-axios": "^2.1.4",
    "vuetify": "^2.0.0-alpha.4"
  },
  "devDependencies": {
    "babel-eslint": "^10.0.1",
    "eslint": "^4.19.1",
    "eslint-friendly-formatter": "^4.0.1",
    "eslint-loader": "^2.1.1",
    "eslint-plugin-vue": "^4.0.0",
    "vue-cli-plugin-vuetify": "^0.4.6"
  }

Thanks in advance.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question