Skip to content
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

Vue props validation error #278

Closed
LexSwed opened this issue Dec 15, 2017 · 14 comments
Closed

Vue props validation error #278

LexSwed opened this issue Dec 15, 2017 · 14 comments

Comments

@LexSwed
Copy link

LexSwed commented Dec 15, 2017

Vue version 2.5.11 complains on "twoWay" prop for a list of objects
vue2-google-maps version is 0.8.4

@asifm
Copy link

asifm commented Dec 17, 2017

Seeing this in several other plugins. Pretty sure it's related to these changes, as mentioned in https://github.com/vuejs/vue/releases

Improvements

warn misspelled keys on prop validation object (#7198) d02bb37, closes vuejs/vue#7198

@jdriesen
Copy link

jdriesen commented Dec 17, 2017

Hi All,

Encountering the same problem...
Can smb please tell me how to solve this ?

Thanks in advance,
Johnny

@Arwany
Copy link

Arwany commented Dec 17, 2017

I am also getting a lot of these warnings:

[Vue warn]: Invalid key "twoWay" in validation rules object for prop "center".

@asifm
Copy link

asifm commented Dec 17, 2017

Seems it's just warnings. You can safely ignore them until it's fixed here. Or you can go back to the previous version of vuejs (2.5.10).

@LexSwed
Copy link
Author

LexSwed commented Dec 17, 2017

@asifm despite it's just warnings, it breaks Vue and app doesn't work.

@asifm
Copy link

asifm commented Dec 17, 2017

I just went back to vue 2.5.10. Things are fine now. Make sure you downversion the other packages that have to match vue version. In my case they were vue-template-compiler and vue-server-renderer.

@jdriesen
Copy link

Thanks for this valuase info, @asifm.
If I can ask, which version of vue-template-compiler and vue-server-renderer are you currently using ?
(with vue 2.5.10 ?)

Thanks in advance for your reply.

Johnny

@asifm
Copy link

asifm commented Dec 17, 2017

They have to always match the vue version. So they'll also be 2.5.10

@jdriesen
Copy link

Problem solved (running now on 2.5.10)
Thank you, @asifm

@vesper8
Copy link

vesper8 commented Dec 18, 2017

so.. are we waiting for vue to fix this or are we waiting for vue-google-maps to fix this? I know it's just a warning.. but I don't like locking my vue version

@asifm
Copy link

asifm commented Dec 18, 2017

@vesper8 We're waiting for all the libraries to fix and update. Vue has nothing further to do about it. 2.5.11 hasn't brought much change (other than this one), so going back to 2.5.10 seems a good solution for the time being.

@Arwany
Copy link

Arwany commented Dec 19, 2017

I have read somewhere that since Vue has added some spellchecking for props keys, it will always warn.

Here is the commit link

@jdriesen
Copy link

jdriesen commented Dec 20, 2017

Yep, indeed @Arwany ...

It WAS a problem in 2.5.11...
Though it's solved now in Vue v. 2.5.12 (released since a couple of hrs...)

Grtz,
Johnny

@asifm
Copy link

asifm commented Jan 9, 2018

Please close the issue. Vue 2.5.12 (and later versions) won't cause this problem.

@LexSwed LexSwed closed this as completed Jul 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants