Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use it with vitest #7163

Open
dword-design opened this issue Jul 12, 2023 · 7 comments
Open

How to use it with vitest #7163

dword-design opened this issue Jul 12, 2023 · 7 comments

Comments

@dword-design
Copy link

dword-design commented Jul 12, 2023

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.

@Hiws
Copy link
Member

Hiws commented Jul 12, 2023

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

@dword-design
Copy link
Author

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

@Hiws
Copy link
Member

Hiws commented Jul 13, 2023

There's no one to maintain it.

@dword-design
Copy link
Author

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

@Hiws
Copy link
Member

Hiws commented Jul 13, 2023

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.

@dword-design
Copy link
Author

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

@matthew-steven-bcbssc
Copy link

matthew-steven-bcbssc commented Jul 19, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants