-
Notifications
You must be signed in to change notification settings - Fork 120
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
_vm.form.errors.has is not a function #117
Comments
Can you create a reproduction demo ? (You can use https://codesandbox.io) |
I'm not very familiar with Sandboxes. If you already have a template for a sandbox with Nuxt + vForm, I can probably recreate it. But I created a gist of my edit page, this is the only page affected. Also, I'm using your laravel-nuxt package (which is very good for beginners like me) |
API-response is this: https://i.imgur.com/4WQgi7C.png |
Hello @cretueusebiu I managed to set a sandbox up somehow. It spits out an error with vue-loader but the issue is almost the same. |
It looks like that the form is not getting filled correctly. |
You are returning the form instance from asyncData, but that won't work with SSR. |
You are a life saver! Thank you very very much. How would I set the post query so that the backend doesnt show it needs a file when the user does not change the image. Can you exclude specific data (for example serverimg) from a form.patch method? |
I don't think I understand what you're trying to do... |
Okay, so I have a edit page |
You would just create 2 forms one for create and one for update with only the fields you need for that action. Or do some checks on your back-end. |
Hi,
I'm trying to set up a edit page, however while receiving the data (to put in the input fields etc), I get this error.
It looks like that its an issue with the vForm.
or just
always prints out
_vm.form.errors.has is not a function
it works when I wrap my template to a client-only page, but I need to use SSR in NuxtJS.
The text was updated successfully, but these errors were encountered: