我是vue和vuetify的新用户,我需要将vuetify v1.5升级到v2.1.3。我阅读了documentatıon,但是ı无法解决此错误:
https://imguploads.net/image/tGzZv
这是我的app.vue代码:
<style lang="sass">
@import '../node_modules/vuetify/src/styles/main.sass';
</style>
这是我的main.js:
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Vuetify from 'vuetify'
import VueResource from 'vue-resource'
import '../src/assets/css/custom.css'
import { i18n } from '@/plugins/i18n'
import '../node_modules/vuetify'
Vue.use(Vuetify)
Vue.use(VueResource)
import auth from '../src/api/auth'
auth.checkAuth()
Vue.router = router
Vue.config.productionTip = false
new Vue({
vuetify: new Vuetify(opts),
router,
store,
i18n,
render: h => h(App)
}).$mount('#app')
答案 0 :(得分:3)
您无需将其导入app.vue
<style lang="sass">
@import '../node_modules/vuetify/src/styles/main.sass';
</style>