有人知道如何将Buefy包含在Vue3中,因为我正在这样做(main.js),但我得到了一个错误:
import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import Buefy from 'buefy';
import 'buefy/dist/buefy.css';
createApp(App)
.use(store)
.use(router)
.use(Buefy)
.mount("#app");
错误是:
Uncaught TypeError: Vue.prototype is undefined
发布于 2021-01-27 02:24:21
对Vue3的购买支持仍处于规划阶段。我想还需要一段时间。
https://github.com/buefy/buefy/issues/2505
截至2020年12月7日:https://github.com/buefy/buefy/issues/2505#issuecomment-739899697
还有一个新的分支,我将尝试迁移其他组件,向您展示我的主要想法:
在我看来,问题不是全部迁移到Vue 3,而是维护两个版本。Vue 3是未来,但是官方的库和框架(例如Nuxt)还没有准备好,所以我现在还不明白真正的需求。
https://stackoverflow.com/questions/65269878
复制相似问题