bootstrap-vue / bootstrap-vue

BootstrapVue provides one of the most comprehensive implementations of Bootstrap v4 for Vue.js. With extensive and automated WAI-ARIA accessibility markup.

Home Page:https://bootstrap-vue.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to use it with vitest

dword-design opened this issue · comments

Hey, I'm trying to use BootstrapVue with Vitest and I get errors when instantiating a Vue instance because it will always resolve vue@^3 instead of @vue/compat and then throws errors related to Vue.extend in portal-vue. Tried all environments (Node, jsdom, happy-dom, Edge). Although it is a Vitest issue, I thought I ask here about ideas because BootstrapVue is the main reason why I'm using @vue/compat and haven't migrated to vue@^3 yet.

Maybe it's also worth documenting how to use it with Vitest.

Wasn't sure what category to use for this issue, feel free to move it somewhere else.

commented

This project isn't being maintained so I'd suggest you look at migrating away from the library.

@Hiws What does this mean? I didn't find information about BootstrapVue not being maintained.

commented

There's no one to maintain it.

@Hiws I think there should be a call for maintainers at the very top of the readme and the website 🙂.

commented

Vue 2 is going EOL in a few months. So don't see any worth in continuing maintaining this project.
For those stuck on Vue 2, I'd suggest forking this project and making the changes they need.

For people who want to upgrade to Vue 3, then https://github.com/bootstrap-vue-next/bootstrap-vue-next should be the best option.

@Hiws Oh I didn't know of this guy! Thanks for that!

For people who want to upgrade to Vue 3, then https://github.com/bootstrap-vue-next/bootstrap-vue-next should be the best option.

Recommending upgrading to an alpha library is not a good suggestion. This library still has value up to the point next is stable.

Also, it works on Vue 3 (to some extent) with compat.