vuejs/vue-rx

throwing up error when i load bootstrap in vue

kayoderock opened this issue ยท 2 comments

import Vue from 'vue'
import VueRouter from 'vue-router'
import vueResource from 'vue-resource'
import VueSession from 'vue-session'
import VueModal from 'vue-js-modal'
import VuePopper from 'vue-popperjs'
import VueJQuery from 'jquery'
import Bootstrap from 'bootstrap'

import app from './App.vue'
import {routes} from './route.js'

Vue.use({VueJQuery});
Vue.use(VuePopper)
Vue.use(VueSession, {persist: true})
Vue.use(VueRouter)
Vue.use(vueResource)
Vue.use(VueModal)
Vue.http.options.root = 'http://localhost:1337/';
Vue.use(Bootstrap);

Uncaught TypeError: Cannot read property 'install' of undefined
at Function.Vue.use (vue.esm.js?efeb:4680)
at eval (main.js?3479:20)
at Object. (build.js:1056)
at webpack_require (build.js:679)
at fn (build.js:89)
at Object. (build.js:905)
at webpack_require (build.js:679)
at build.js:725
at build.js:728

I keep getting this issue only when i add the use part of bootstrap

I am not sure if it's the correct place to issue this.
You should probably open this issue in https://github.com/vuejs/vue

Did you try to take a look at Bootstrap-vue ? Maybe it can help

@benoitemile Thanks, I was doing it wrongly, there is a package for vue - https://github.com/bootstrap-vue/bootstrap-vue.Thanks