我升级了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"
}
})