Unable to import bootstarp vue js in nova laravel.

Hello , How can call bootstrap vue js in custom view. I have followed all instructions https://bootstrap-vue.js.org/docs/ but bootstarp vue is not applying and even not getting error . after installing by npm. I am trying to call in this file /nova-components/Viewcache/resources/js/components/Tool.Vue

Anyone have an idea for that please

1 Like

Hi

Could you post your code where you imports bootstrap-vue? See this how to do it: Using Syntax Highlighting in this forum

This my main.js from a product which uses bootstrap-vue

import Vue from 'vue'
import App from './App.vue'

import BootstrapVue from 'bootstrap-vue'
import 'bootstrap-vue/dist/bootstrap-vue.css'
Vue.use(BootstrapVue)

Vue.config.productionTip = false

new Vue({
  render: h => h(App),
  components: { App },
}).$mount('#app')

and then in other components can I use bootstrap component. Like App.vue

<template>
  <div>
     <b-button>Just a button</b-button>
  </div>
</template>

<script>
export default {
  name: 'App'
}
</script>