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

TypeError: Cannot read properties of undefined (reading 'devtoolsRawSetupState') #1962

Closed
jolting opened this issue Feb 16, 2022 · 2 comments

Comments

@jolting
Copy link

jolting commented Feb 16, 2022

Subject of the issue

Beginning with Vue 3.2.25 and the latest version of vue-test-utils I started running into this error on some calls to wrapper.findComponent({ref}) . The problem isn't observed with Vue 3.2.24.

    TypeError: Cannot read properties of undefined (reading 'devtoolsRawSetupState')
      at new VueWrapper (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:7611:22)
      at Object.<anonymous> (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:7729:79)
      at createVueWrapper (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:1721:45)
      at VueWrapper.findComponent (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:7311:24)

Steps to reproduce

I don't have an example test case yet. This happens in a larger project. I will need to narrow down the cause first.

Expected behaviour

findComponent should not throw the error

Actual behaviour

findComponent sometimes throws an error.

Possible Solution

Downgrade to Vue 3.2.24

@jolting
Copy link
Author

jolting commented Feb 16, 2022

I'm going to look into seeing if it's related to v-for. There was some work around this in 3.2.25

@jolting
Copy link
Author

jolting commented Feb 17, 2022

Incorrectly reported to here. This is for vue3

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

1 participant