Property or method "debouncedValidate" is not defined on the instance but referenced during render
See original GitHub issueI’ve created a custom field for postcode. but I got error in console."Property or method “debouncedValidate” is not defined on the instance but referenced during render "
<template>
<input
class="form-control"
type="tel"
v-model="value"
:disabled="disabled"
:maxlength="schema.maxlength"
:placeholder="schema.placeholder"
:readonly="schema.readonly"
:formmethod="schema.formmethod"
:debouncedValidate="schema.validator"
@input="onEnter($event)"
>
</template>
<script>
import { abstractField } from "vue-form-generator";
import { getConfig } from '../utils/api'
export default {
mixins: [ abstractField ],
methods: {
onEnter(event){
this.value = this.value.replace(/[^0-9-]+/,'')
}
}
};
</script>
something i missed?
Issue Analytics
- State:
- Created 6 years ago
- Comments:14 (14 by maintainers)
Top Results From Across the Web
Vue.js : Property or method is not defined on the instance but ...
It seems a very simple mistake: :title="Dashboard". in Vue using a column ( : ) to prepend a prop or an attribute on...
Read more >Property or method "_" is not defined on the instance but ...
Coding example for the question Property or method "_" is not defined on the instance but referenced during render-Vue.js.
Read more >Developers - Property or method "debouncedValidate" is not defined ...
I've created a custom field for postcode. but I got error in console."Property or method "debouncedValidate" is not defined on the instance but...
Read more >Property or method * is not defined on the instance but ...
Property or method * is not defined on the instance but referenced during render. Make sure to declare reactive data properties in the...
Read more >Property or method is not defined. : r/vuejs - Reddit
I get the error of property or method "posts" is not defined on the instance but referenced during render. How can I make...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ok, I think I’ve tracked the issue down … it looks like the older version of Vue that VFG was originally written against supported adding methods to the Vue components dynamically. However, the newer version of Vue is throwing errors because “debouncedValidate” is not defined in the component, as it was being attached only in certain situations. This seems to only occur if you’re using a newer version of Vue than VFG was intended for.
Working on a fix now.
@zoul0813 Thank you very much!