-
Notifications
You must be signed in to change notification settings - Fork 668
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
"Cannot read property '_transitionClasses' of undefined" when injecting vee-validate which is not used #829
Comments
I've just downgraded to beta.12 and the error is gone. Maybe something related to #532? |
I think this is related below. |
Can you try setting sync to false when you mount a component: it("renders", () => {
let wrapper = shallowMount(demo, { sync: false });
wrapper.setData({selectedDate: testDate})
setTimeout(() => {
wrapper.vm.selectedDate.should.be.equal(testDate)
done()
})
}); |
I tried with { sync: false } and it worked for me |
I've confirmed that this issue is with the current |
Just a FYI, I am getting this error on beta.25, if I mount with |
I'm still getting this error with My component calls I'm on Vue version 2.6.10 and vue-test-utils version 1.0.0-beta.29 |
As weird as it appears I had the exact same error on NuxtJS in production [only]. This makes a blank page as a result if you access it via direct link. I fixed it by moving the logic from Hope it helps someone else someday 🤞 |
I'm still having this very same issue with:
|
Similar error with
Solved with |
I am Getting "TypeError: Cannot read property '_transitionClasses' of undefined" this error while I am using JSON.parse(JSON.stringify(obj)) for a deep copy...! i tried {sync: false} and it is giving some other error..help me out!! Thankyou |
I am also getting this errors randomly. Sometimes it fails with it, sometimes passes. I am using
So it is obviously far from fixed... |
I had the same issue. I had several items "it". Option it('Has text password', () => { |
Version
1.0.0-beta.20
Reproduction link
https://cli.vuejs.org/guide/prototyping.html
Steps to reproduce
I have this strange error when I'm running a test on a component that's using vee-validate. What's even weirder is that it doesn't happen when I actually use
this.errors
in that component.this.errors
is an ErrorBag added by vee-validate, and it makes the error disappear even if I just add a dummy line likeconsole.log(this.errors);
orthis.errors;
into the tested component's created hook.Test code:
Output from
yarn test:unit
:It's coming from
node_modules/vue/dist/vue.runtime.common.js
, line 1739 and 589.After I add to tested component:
The error is gone! Why the error appears otherwise? Is Vue clearing vee-validate if it's not used and in result breaking these transitions? Doesn't help if I add
{{ errors }}
to the template, though.I'm injecting vee-validate like this:
Not sure if this error is caused by Vue, vue-test-utils or vee-validate, but since it doesn't throw this error on dev and production build, it must be sth with vue-test-utils.
What is expected?
The error should be gone.
What is actually happening?
I get "TypeError: Cannot read property '_transitionClasses' of undefined"
The text was updated successfully, but these errors were encountered: