Generated Vue-Cli project: error using VueRouter #7037
-
I have this Problem: The original example works, There is no difference if I use the router vue create client => vue 2
Versions in the generated project as specified on https://bootstrap-vue.org/: generated main.js, modified: import Vue from 'vue'
import App from './App.vue'
Vue.config.productionTip = false
// additional lines to generated example: start
import VueRouter from 'bootstrap-vue'
const routes = [
{
path: '/',
component: App
}
]
const my_router = new VueRouter({
routes
});
Vue.use(my_router)**
// additional lines to generated example: end_
new Vue({
render: h => h(App),
}).$mount('#app')
Browser => Blank site with error message in the console: Uncaught TypeError: bootstrap_vue__WEBPACK_IMPORTED_MODULE_2__.default is not a constructor |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This doesn't look quite right
|
Beta Was this translation helpful? Give feedback.
This doesn't look quite right