Skip to content

throwing up error when i load bootstrap in vue  #921

Closed
@kayoderock

Description

@kayoderock

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions