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
Not working with nuxtjs #531
Comments
I'm currently building an app with Nuxt.js I will add vee-validate and report back. this could be similar to #524 but it seems to be working fine. |
I just installed used vee-validate with nuxt normally without issues, did you try to reload your server? |
Yes, I did... then I should try it on a starter template again instead of my project (just in case). If your repo can be public... please share @logaretm . |
Sadly it isn't, but here is the relevant parts: plugins/vee-validate.js import Vue from 'vue';
import VeeValidate from 'vee-validate';
Vue.use(VeeValidate, {
inject: false
}); nuxt.config.js module.exports = {
// ...
plugins: [
'~plugins/vee-validate.js',
'~plugins/global-components.js'
],
build: {
vendor: ['vee-validate'],
// ...
}
}; |
Hmmm... at first I thought this was fixed in beta 23. Any clues to fix? I get no errors per se. |
Its not happening to me, no changes were done to how the plugin installation process, so I'm not sure, can you share your btw I'm using the latest nuxtjs version 1.0.12 alpha |
I will check and report. |
Ok I upgraded my project to run latest alpha of nuxt, now I get the following on console:
I have a very simple form with one email field: |
Okay, this works!
then,
then, in my page:
and template:
Works fine. Please close the issue. Thanks for your help @logaretm 👍 |
You don't have to turn off ssr, In my example I was using the Read more about it here: http://vee-validate.logaretm.com/advanced#injection If you omit the options or set the inject option to true, it shouldn't give you this warning. Vue.use(VeeValidate); |
Yes ssr needed. Fixed. |
@SharadKumar i still having the problem, even after following your steps I got this error
I'm using nuxt.js as well may I know for the specific .vue file, what else do I need to put in order to make the v-validate directive working? |
It can work in this way:
then, nuxt.config.js
then, in my page:
|
@SharadKumar @logaretm @finalight @horan-geeker @blackpr Features
|
Versions:
Description:
Simple implementation with nuxtjs, following the example, not working! Not able to figure out the cause.
Steps To Reproduce:
Any sample, wiht validator added via npm/yarn... then registered using a plugin:
Now when I use it on the form on the
page
,errors
is undefined and so is$validator
.The text was updated successfully, but these errors were encountered: