Support and usage on Vue 3
See original GitHub issueDescription
Some weeks ago I migrated an app with bootstrap table to Vue 3. For any reason, the table does not work anymore. I suspect the problem is that BT is not supported on Vue 3.
What I expected
Use BT in a component like
<BootstrapTable :columns="columns" :data="data" :options="options"></BootstrapTable>
What I got
Uncaught TypeError: Cannot read property ‘fn’ of undefined
What I’ve tried so far
- Followed the instructions on the https://bootstrap-table.com/docs/vuejs/webpack/ page.
- Imported jquery on main.js and directly on the component
The only issue I have found is that for BT, jquery is undefined, which I do not fully understand, as I load jquery before BT.
Has anyone come across the same issue before?
Thanks in advance
Issue Analytics
- State:
- Created 3 years ago
- Comments:10
Top Results From Across the Web
Frequently Asked Questions - Vue.js
What browsers does Vue support? #. The latest version of Vue (3.x) only supports browsers with native ES2015 support. This excludes IE11. Vue...
Read more >Vue.js 3 support - BootstrapVue
@vue/compat support is designed for early migration to Vue.js 3 and will be ... You can use this sandbox for reference or reporting...
Read more >New features in Vue 3 and how to use them - LogRocket Blog
Learn how to use the newest features in Vue 3 ahead of its official release including global mounting, portals, and Suspense.
Read more >What's new in Vue 3 — a roundup. Vue 3 - Medium
Why Vue 3? · Blazing fast, Vite-powered build toolchain · More ergonomic Composition API syntax via <script setup> · Improved TypeScript IDE support...
Read more >Yes, Vue 3 is out but you probably don't need it ♂️ - ITNEXT
When to use Vue 3 and when not to · If you need IE11 support: don't use it, support is not there yet...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m trying to use Bootstrap Table but I’m getting this error;
Uncaught TypeError: Cannot read property ‘methods’ of undefined at eval (bootstrap-table-vue.esm.js?95f0:2126) at Module.eval (bootstrap-table-vue.esm.js?95f0:2145) at eval (bootstrap-table-vue.esm.js:2288) at Module…/node_modules/bootstrap-table/dist/bootstrap-table-vue.esm.js (app.js:1309) at webpack_require (app.js:833) at fn (app.js:130) at eval (cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/profile/InvoiceList.vue?vue&type=script&lang=js&:6) at Module…/node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/profile/InvoiceList.vue?vue&type=script&lang=js& (app.js:1576) at webpack_require (app.js:833) at fn (app.js:130)
I follow the doc https://bootstrap-table.com/docs/vuejs/webpack/
No problem. main.js:
I have included some extensions in plugins/table.js file:
And plugins/jquery.js looks like this:
Finally, use component where you need:
Hope this can help you.