我收到错误Unknown custom element: <v-main> - did you register the component correctly?
但所有其他Vuetify标签(v-app、v-app-bar等)工作正常
我正在使用VueJS + Vuetify + Laravel
package.json
"vue": "^2.5.17",
"vuetify": "^2.2.30",
"vuex": "^3.4.0"
"vuetify-loader": "^1.3.0"
"vue-cli-plugin-vuetify": "~2.0.5",
"vue-template-compiler": "^2.6.10",在app.js中
import Vuetify from "vuetify";
Vue.use(Vuetify);
Vue.component('main-app', require("./MainApp").default);
const app = new Vue({
el: "#app",
store,
vuetify: new Vuetify(),
});组件:
<template>
<v-app>
<v-main>
</v-main>
</v-app>
</template>.blade.php文件:
<body>
<div id="app">
<main-app></main-app>
</div>
</body>谢谢你的帮助
发布于 2020-08-21 01:24:07
通过将Vuetify更新为"vuetify": "^2.3.9",解决了问题
https://stackoverflow.com/questions/63508830
复制相似问题