Monday, 5 August 2019

_plugins_vuetify__WEBPACK_IMPORTED_MODULE_136__.default is not a constructor

I have build a vue app with vue cli 3 and added vuetify. Now to reduce my bundle size I changed the vuetify import to:

I am using vuetify 1.5.5 and vue 3.7.0

import Vue from 'vue';
import Vuetify, { VLayout, VBtn, VApp } from 'vuetify/lib';
import 'vuetify/src/stylus/app.styl';

Vue.use(Vuetify, {
  components: {
    VApp,
    VLayout,
    VBtn,
  },
  theme: {
    primary: '#ee44aa',
    secondary: '#424242',
    accent: '#82B1FF',
    error: '#FF5252',
    info: '#2196F3',
    success: '#4CAF50',
    warning: '#FFC107',
  },
  options: {
    customProperties: true,
  },
  iconfont: 'md',
});

export default Vuetify;

But after this I get this error in console: enter image description here



from _plugins_vuetify__WEBPACK_IMPORTED_MODULE_136__.default is not a constructor

No comments:

Post a Comment