简体   繁体   中英

[Vue warn]: Failed to resolve component: v-toolbar-title issue vue3 and vuetify 3.0.0-alpha.0 version

I am getting below issue while running the sample application with below configuration.

package.json

> "vue": "^3.0.0", 
> "vue-textarea-autosize": "^1.1.1", 
> "vuetify":"^3.0.0-alpha.0"

Main.js

import { createApp } from 'vue'
import App from './App.vue'
import vuetify from './plugins/vuetify'
import 'vuetify/dist/vuetify.css'
app.use(vuetify).use(VueTextareaAutosize)

Getting below warning and component is not visible. Can anyone help me on this?

在此处输入图像描述

It is a warning and not an issue. Generally, you can sort it by importing the components correctly.

Also, you need to import vuetify correctly

import { createApp } from 'vue'
import { createVuetify } from 'vuetify'
import App from './App.vue'

const app = createApp(App)
const vuetify = createVuetify(...) // Replaces new Vuetify(...)

app.use(vuetify)

app.mount('#app')

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM