Skip to content
This repository has been archived by the owner on Dec 25, 2017. It is now read-only.

"Error when evaluating expression validation.name.invalid" #35

Closed
dwightjack opened this issue Jul 17, 2015 · 7 comments
Closed

"Error when evaluating expression validation.name.invalid" #35

dwightjack opened this issue Jul 17, 2015 · 7 comments
Milestone

Comments

@dwightjack
Copy link

Hi,

great work on this plugin!

When I access to the validation object, i got in the console the following message:

[Vue warn]: Error when evaluating expression "validation.name.invalid"

While this doesn't break the application I wonder if I'm missing something in the setup.

Thanks in advance!

@kazupon
Copy link
Owner

kazupon commented Jul 17, 2015

I think that there are not problem in your setup code.
This is small problem of vue-validator.

See http://vuejs.org/guide/best-practices.html#Data_Initialization

But it does not effect in application behavior.
That's OK. 😄

In the v2.0, I'm going to resolve it !

@dwightjack
Copy link
Author

Ok thanks for the explanation!

@PeakTai
Copy link

PeakTai commented Aug 19, 2015

I met the same problem.If the level is too much,it's not convenient to initialize data like this instead of an empty object.I do this now:

validation&&validation.form.name.invalid

@kazupon kazupon added the 2.0 label Oct 26, 2015
@kazupon kazupon added this to the v2.0 milestone Nov 8, 2015
@oliverzy
Copy link

oliverzy commented Dec 4, 2015

I found if I turned on Vue.config.debug, Vue will throw exception, the app will stop working.

@EHackettTriCore
Copy link

+1

@seanwash
Copy link

I can also verify this. My application was breaking until I set Vue.config.debug to false. I get the same warning, although that app now behaves as expected.

@kazupon
Copy link
Owner

kazupon commented Dec 22, 2015

Sorry, I cannot find a solution to this issue yet.
This issue is difficult.

I'm asking the advise about related issue at below forum.

http://forum.vuejs.org/topic/957/how-to-avoid-evaluating-expression-warning-for-plugin-author

This issue is occuring when we using development version of vue.js

In development of app, we can avoid this issue by setting the Vue.config.warnExpressionErrors = false.

I'll try to write the README.md later. 😸

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants