-
-
Notifications
You must be signed in to change notification settings - Fork 440
Props break when i define data in defineComponent #4363
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
Comments
This issue isn't similar. My problem is that all the props become unknown when i define them like this and use data() props: {
prop: {
type: String,
default: 'selection',
validator: (value) => {
return typeof value === 'string';
}
}
} but it works when i use them like this props: {
prop: String
} This Issue comes from the Plugin |
@ardelan869 why did you close the issue? Did you find a solution? |
@Alexey-B I haven't found a solution, haven't even used Vue in a long time. Thank you for the answer though. Edit: i've closed the issue, because it was inactive for a week. |
@ardelan869 thanks for the answer, I found another suggestion for this problem: |
With data() defined


Without data() defined
The text was updated successfully, but these errors were encountered: