升级vue后,出现白屏死机,[HMR]等待来自WDS的更新信号

时间:2019-07-26 08:14:57

标签: vue.js vuetify.js vue-cli

我升级了vue,现在我得到了死亡的白屏,我将附加代码

我认为我在浏览器中遇到的主要错误是[HMR] Waiting for update signal from WDS...

// src/main.js

import Vue from 'vue'
import vuetify from '@/plugins/vuetify' // path to vuetify export

new Vue({
  vuetify,
}).$mount('#app')

// src / plugins / vuetify.js

import "@mdi/font/css/materialdesignicons.css" // Ensure you are using css-loader
import Vue from "vue"
import Vuetify from "vuetify/lib"
import {
  transitions,
  VApp,
  VAvatar,
  VBtn,
  VCard,
  VChip,
  VFooter,
  VForm,
  VGrid,
  VIcon,
  VImg,
  VList,
  VNavigationDrawer,
  VParallax,
  VSwitch,
  VTextField,
  VToolbar
} from "vuetify"

Vue.use(Vuetify)

export default new Vuetify({
  icons: {
    iconfont: "mdi" // default - only for display purposes
  },

  components: {
    VApp,
    VAvatar,
    VParallax,
    VNavigationDrawer,
    VFooter,
    VList,
    VCard,
    VBtn,
    VChip,
    VIcon,
    VGrid,
    VToolbar,
    VTextField,
    transitions,
    VForm,
    VImg,
    VSwitch
  },
  theme: {
    primary: "#5fdaee",
    secondary: "#424242",
    accent: "#82B1FF",
    error: "#FF5252",
    info: "#2196F3",
    success: "#4CAF50",
    warning: "#FFC107"
  }
})

relevant files

0 个答案:

没有答案