You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
current error message is non helpful for vue-class-component (js or ts):
if you forget to initialize a property then you get this error:
Property or method "xxx" is not defined on the instance but referenced during render. Make sure to declare reactive data properties in the data option.
So of course with class based components there is no 'data option', so this isn't helpful.
Proposal is to change the error message:
Property or method "xxx" 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://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties
What does the proposed API look like?
no changes.
The text was updated successfully, but these errors were encountered:
What problem does this feature solve?
current error message is non helpful for vue-class-component (js or ts):
if you forget to initialize a property then you get this error:
Property or method "xxx" is not defined on the instance but referenced during render. Make sure to declare reactive data properties in the data option.
So of course with class based components there is no 'data option', so this isn't helpful.
Proposal is to change the error message:
Property or method "xxx" 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://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties
What does the proposed API look like?
no changes.
The text was updated successfully, but these errors were encountered: