How to make vitest work with Vue 2.7? #1599
Unanswered
kingyue737
asked this question in
Q&A
Replies: 1 comment
-
|
This is a bug of Vue 2.7. Fixed in v2.7.4 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My project use many cjs packages which
requireVue (e.g.Vuetify 2,@testing-library/vue). But if I require a cjs Vue, I can no longerimportapi from Vue 2.7 and some dependencies likevue-demiwill throw the following error running invitest:In Vue 2.6, I can safely require the cjs entry of Vue and all the api are imported from
@vue/composition-apiinstead of Vue itself.Beta Was this translation helpful? Give feedback.
All reactions