-
Notifications
You must be signed in to change notification settings - Fork 244
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
TypeError: Cannot read property 'devtoolsRawSetupState' of undefined #1329
Comments
@jonsalvas Thanks for the report. Can you provide a small reproduction so we can investigate? You can use |
Hey, thanks for the fast reply and sorry for the delay, I had some other tasks to do at work. You can find a reproduction project here: I think the key is the v-for here:
if I remove the v-for it works fine. So I highly assume a newer version of vue causes multiple refs with same name to be handled differently somehow? |
Is <div v-for="value in 3" :key="value"> Even valid? I thought the syntax was |
The doc says the following are allowed: "Array | Object | number | string | Iterable" (https://vuejs.org/api/built-in-directives.html#v-for). And changing it to [1,2,3] makes no difference. Anyway, the reproduction project is just a simplified example. In our original code we iterate over arrays of objects to generate multiple options/checkboxes. |
Thanks for the repo, will try take a look. |
I did not investigate but it looks similar to issues we've seen in vue core |
@jonsalvas Can you give it a try with VTU 2.0.0-rc.20 and Vue v3.2.32 please? The fix I was talking about landed in Vue core, so it might solve your problem. |
@cexbrayat nope, slightly different error, but technically the same:
|
I was able to reproduce it within our unit tests and created a PR with the fix. |
thanks a lot! Any idea when it is going to be released? |
It's out now! https://github.com/vuejs/test-utils/releases/tag/v2.0.0-rc.21 |
Vue Version: 3.2.31
Test-Utils: 2.0.0-rc.18
When upgrading from vue from 3.2.24 to 3.2.25 all our tests fail with the following error:
This is thrown when trying to call .findComponent on a mounted component using ref:
wrapper.findComponent({ref: ".."})
Seems that we were not alone with this issue:
vuejs/vue-test-utils#1962
The text was updated successfully, but these errors were encountered: