我尝试使用Vue 3,但好像无法再次使用Vue.use(exampleplugin)。
我在使用vue create命令生成项目后,使用了vue add bootstrap-vue。但是在插件bootstrap-vue上出现了代码警告:
import Vue from "vue";
import BootstrapVue from "bootstrap-vue";
import "bootstrap/dist/css/bootstrap.min.css";
import "bootstrap-vue/dist/bootstrap-vue.css";
Vue.use(BootstrapVue);
输出警告终端:
警告 于 ./src/plugins/bootstrap-vue.js
"export 'default' (imported as 'Vue') was not found in 'vue'
警告 于 ./node_modules/bootstrap-vue/esm/utils/vue.js
"export 'default' (imported as 'Vue') was not found in 'vue'
出了什么问题?我该如何在vue3中使用bootstrap-vue插件?