I am writing a Vue.js app with Bootstrap 4 and I can\'t loaded though I followed the documentation.
Added to main.js
Vue.use(BootstrapVue);
I had to do a combination/variation of some of the other answers.
App.vue:
import { BootstrapVue, IconsPlugin } from 'bootstrap-vue'
import Vue from 'vue'
// Install BootstrapVue
Vue.use(BootstrapVue)
// Optionally install the BootstrapVue icon components plugin
Vue.use(IconsPlugin)
import 'bootstrap/dist/css/bootstrap.css'
import 'bootstrap-vue/dist/bootstrap-vue.css'
export default {
name: 'App',
components: {
}
}
Sources: https://forum.vuejs.org/t/ui-library-styles-not-loading-in-web-components/77858/2 https://bootstrap-vue.org/docs