-
-
Notifications
You must be signed in to change notification settings - Fork 503
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
v0.7+: $params values are null #302
Comments
It seems like an issue only with the browser version, since all the tests are passing. I'll take a look and I'll add a test case for that. |
Fix released as v0.7.4 |
Experiencing the same behavior with electron 3.0.8 and Vuelidate 0.7.4. |
Same issue here
+1! |
Same issue |
Can we reopen this issue? $params are null in 0.7.4 |
Also having an issue with $params object in 0.7.4, using Vue 2.5.21 in a Laravel application. Not sure if this matters, but the application is being bundled by Webpack via laravel-mix 4.0.12 -- according to my package-lock.json file the version of webpack installed is 4.28.3. Otherwise loving this library though! Edit: Follow-up Edit: import Vuelidate from 'vuelidate';
Vue.use(Vuelidate); But if I remove this code, and use the following in the form component that ultimately needs to use it, the $params work again! import { validationMixin } from 'vuelidate';
export default {
...
mixins: [ validationMixin ],
...
} Using the mixin didn't work until I removed the application-wide plugin declaration. Hope this helps! |
Also started to experience same problem with 0.7.4 on Electron after "npm update" which did not involve Vuelidate itself. I tried to downgrade several packages including vue and vue-template-compiler but no success: I could not manage to detect the exact update due to complexity of app. Anyway, global injection of plugins is evil; now, with mixin injection (HUGE thanks to @kevintruby ), code looks and works better. |
My issue was a different one: My import looked like
while it really should be according to the documentation - the auto import of Webstorm screwed me :)
|
same problem,$params value are null The solution is include vuelidate.min.js before validators.min.js |
This one needs to be on documentation or somewhere else (FAQ?) Also, bug reappears when loading via async modules with webpack chunking enabled. Runtime selection of "withParams" would somehow make life easier: src/withParamsBrowser.js, last export, change to: |
As you can see in the default fiddle the
$params
values arenull
:So using
$v.text.$params.minLength.min
like the docs say gives a type error.This bug appeared in v0.7.0, it was working in v0.6.2.
The text was updated successfully, but these errors were encountered: