Unknown custom element: - did you register the component correctly? For recursive components

后端 未结 5 2131
不思量自难忘°
不思量自难忘° 2021-01-06 14:13

Hey I have a problem with importing vuetify into my project...

What am I doing wrong?

[Vue warn]: Unknown custom element: - did you register

5条回答
  •  北海茫月
    2021-01-06 14:38

    To add Vuetify to existing project you should follow the below procedure

    In your project folder run,

    npm install vuetify --save
    

    In your app.js

    import Vuetify from 'vuetify/lib'
    // To add vuetify css file
    import 'vuetify/dist/vuetify.min.css'
    Vue.use(Vuetify)
    
    export default new Vuetify({ ... })
    

    To finish, you need to add a v-app component that wrap your entire application in order to make Vuetify works.

    
      
    
    

提交回复
热议问题