我已经Vuetify在我的Vuewebpack应用程序上进行了设置。
我的项目已设置为vue init webpack my-project运行Vue 2.5.2和使用Vuetify 2.0.2。
我已经安装Vuetify在我的App.js
import Vue from 'vue'
import '../node_modules/vuetify/dist/vuetify.min.css';
import App from './App'
import router from './router'
import store from './store'
import Vuetify from 'vuetify'
Vue.use(Vuetify)
/* eslint-disable no-new */
new Vue({
el: '#app',
router,
store,
render: h => h(App)
})
Run Code Online (Sandbox Code Playgroud)
一切似乎都正常。我可以Vuetify在我的组件之一中调用组件。
<template>
<v-container>
<v-card width="400" height="150" raised>
<h4>Hello</h4>
</v-card>
</v-container>
</template>
Run Code Online (Sandbox Code Playgroud)
然后我读,我需要换我App.js与V-应用程序组件,但是当我这样做,我得到一个错误说:Error: Vuetify is not properly …