Browser => Blank site with error message in the console:
\nUncaught TypeError: bootstrap_vue__WEBPACK_IMPORTED_MODULE_2__.default is not a constructor
\n main.js:14
\njs app.js:175
\nwebpack_require app.js:257
\nwebpack_exports app.js:1379
\nO app.js:303
\n app.js:1380
\n app.js:1382
This doesn't look quite right
\n\n","upvoteCount":1,"url":"https://github.com/bootstrap-vue/bootstrap-vue/discussions/7037#discussioncomment-3488870"}}}\n
import VueRouter from 'bootstrap-vue'
-
|
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.
-
|
This doesn't look quite right
|
Beta Was this translation helpful? Give feedback.
This doesn't look quite right