I have recently tried to create a simple app that combines Vue.js, Vuetify.js and Typescript. However, even though at first Vuetify seemed to work when combined with Typescript, upon my most recent app compilation, all I get are error messages of the type "Unknown custom component".
Here is the configuration for my vuetify.js
file:
import '@mdi/font/css/materialdesignicons.css'
import Vue from 'vue'
import Vuetify from 'vuetify/lib'
Vue.use(Vuetify)
export default new Vuetify({
icons: {
iconfont: 'mdi',
},
})
And here is the config for my main.ts
file:
import Vue from 'vue';
import App from './App.vue';
import router from './router';
import './registerServiceWorker';
import vuetify from '@/plugins/vuetify.js';
Vue.config.productionTip = false;
new Vue({
router,
vuetify,
render: (h) => h(App),
}).$mount('#app');
I installed Vuetify using npm install vuetify
and not through the Vue CLI.