When trying to get form data I am getting the following error in console:
vue.runtime.esm.js?2b0e:1888 TypeError: Cannot read property 'validate' of undefined
at _callee$ (AddProduct.vue?eb76:67)
at tryCatch (runtime.js?96cf:63)
at Generator.invoke [as _invoke] (runtime.js?96cf:293)
at Generator.eval [as next] (runtime.js?96cf:118)
at asyncGeneratorStep (asyncToGenerator.js?1da1:3)
at _next (asyncToGenerator.js?1da1:25)
at eval (asyncToGenerator.js?1da1:32)
at new Promise (<anonymous>)
at eval (asyncToGenerator.js?1da1:21)
at VueComponent.addProduct (AddProduct.vue?eb76:67)
My VueJs component : https://pastebin.com/9v2bsEaP
It emits and event that is called from AppVue. This is it: https://pastebin.com/FrNzzCn4
I suspect this is caused by validation but I cannot figure out what I miss. Thank you for looking.