-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
Improve error msg for non-reactive properties #6735
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
Conversation
src/core/instance/proxy.js
Outdated
@@ -42,7 +44,7 @@ if (process.env.NODE_ENV !== 'production') { | |||
} | |||
|
|||
const hasHandler = { | |||
has (target, key) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we remove the code style changes?
src/core/instance/proxy.js
Outdated
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.`, | ||
target |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to use concatenations for each line to avoid the whitespace between the lines.
Thanks, @yyx990803 should be ok right now 👌 |
@kutyel you can run |
What kind of change does this PR introduce? (check at least one)
Improved error message.
Does this PR introduce a breaking change? (check one)
Other information:
Fixes #6657