Vee-validate: TypeError on Safari: Attempted to assign to readonly property, pointing to setDirty function

Created on 27 Oct 2016  路  5Comments  路  Source: logaretm/vee-validate

Hi, this is a great project since laravel validation was also a big help for laravel back end. However, I encountered an error while working with vee-validate for Safari Web Browser. Safari throw an error which is 'TypeError: Attempted to assign to readonly property'.
screen shot 2016-10-27 at 15 39 11

My observation ended up in setDirty function, which was shown in figure below.
screen shot 2016-10-27 at 15 37 37

Any idea? Thank you so much.

Most helpful comment

The last release used a Proxy object to assign those flags, but we dropped it because of this here #42

I think the next release should be able to fix it, you can pull the repo and build the latest changes and test it if you would like. Hopefully I can release a tag today or tomorrow. Thanks for the feedback!

All 5 comments

The last release used a Proxy object to assign those flags, but we dropped it because of this here #42

I think the next release should be able to fix it, you can pull the repo and build the latest changes and test it if you would like. Hopefully I can release a tag today or tomorrow. Thanks for the feedback!

Thank you so much @logaretm for fast response. Actually, Proxy problem was occurred previously, but it was solved by adding proxy-polyfills (https://github.com/GoogleChrome/proxy-polyfill).
I tried to pull the latest changes, and yes, there is no Proxy usage compare to latest release. However, an error appear as shown in figure below, at line 2259. I've tried to find value/object contained in 'this'. Actually, 'this' was undefined.
screen shot 2016-10-27 at 17 31 29
screen shot 2016-10-27 at 17 31 40
Looking for next release, thanks for great works. Embeddeding laravel validation is such a great idea.

I always liked Laravel's validation. You probably built the Vue 1.0 version which is located at master branch, you need to checkout the next branch which should contain Vue 2.0 stuff.

Whoops, my mistakes. Next branch solve the problems. Thank you so much.

No problem, I probably should have made it more clearer in the readme.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

the94air picture the94air  路  3Comments

HunterJS-bit picture HunterJS-bit  路  3Comments

kidox picture kidox  路  3Comments

yyyuuu777 picture yyyuuu777  路  3Comments

saintplay picture saintplay  路  3Comments