I'm trying to use bootstrap-vue5 over vue3 (vite config). I tried to follow documentation on https://bootstrap-vue.org/docs/components/table but no luck.
The error is:
[Vue warn]: Failed to resolve component: b-table
If this is a native custom element, make sure to exclude it from component resolution
via compilerOptions.isCustomElement.
at <NewTable onVnodeUnmounted=fn<onVnodeUnmounted> ref=Ref< null > >
at <RouterView>
at <App>
For the table I used the code in the page: https://bootstrap-vue.org/docs/components/table
For instalation I tried to follow https://bootstrap-vue.org/docs#using-module-bundlers. But I my app returns error if I add import Vue from 'vue' and Vue.use() or app.use()
Right now, my main.js looks like:
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import { BootstrapVue, IconsPlugin } from 'bootstrap-vue'
import './assets/main.css'
import "bootstrap/dist/css/bootstrap.min.css"
import 'bootstrap/dist/css/bootstrap.css'
import 'bootstrap-vue/dist/bootstrap-vue.css'
const app = createApp(App)
app.use(router)
app.mount('#app')
I see some years ago "b-table" working fine but on Vue2 with webpack and older bootstrap.
Thanks,