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
Test do not work with Vue 2.7 and Vue <script setup> Setup Api #525
Comments
Hi there, I was running into the same issue, and
I'm not sure, you may have to make sure that |
Hey, I also encountered this issue before, I upgraded to
and now my Other deps:
Also I'm using Typescript with babel my
|
@omrumbakitemiz I am also facing the same issue, even if my package.json configuration same as mentioned by you. below ways can help us to resolve this
|
Hi there,
Issue Description
I'm having trouble running unit tests with the Vue setup api using
<script setup>
. When running, the error states :[Vue warn]: Property or method "msg" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://v2.vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.
Background
I created a plain new Vue 2 project via the Vue cli, updated to Vue 2.7.14 and migrated the
Hello World
component to the setup api. After migration the test does not work anymore. Nevertheless, the app is still running in dev mode and can be build.The component now is:
Used Dependencies
Does anybody know what to do? Thank you a lot in advance!
The text was updated successfully, but these errors were encountered: