I am working on Vue3 project with vue-material library. But after using the vue-material library I am receiving the following error r.default is not a constructor
. I traced it back and found that its coming from ./node_module/vue-material/dist/components/index.js
. I have no idea what I am doing wrong. My main.js file code is as follows
import {createApp,} from 'vue'
import { MdButton} from 'vue-material/dist/components'
import 'vue-material/dist/vue-material.min.css'
import 'vue-material/dist/theme/default.css'
import App from './App.vue'
const app = createApp(App)
app.use(MdButton)
app.mount("#app");
I tried every possible combination as I could.
Furthermore, if I remove the second import import { MdButton} from 'vue-material/dist/components'
and the line app.use(MdButton)
. Everything is working as expected just that vue-material, I guess, only causing the problem. I did some research on the topic and found this https://github.com/vuematerial/vue-material/issues/312 but have no idea how to use it.
I will appreciate your help on this issue?
vue-material
isn't yet ready for vue3 ... I knowvuetify
isn't! - this issue basically states thatvue-material
is NOT yet ready for vue3 – Knapsack