question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Property or method "debouncedValidate" is not defined on the instance but referenced during render

See original GitHub issue

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 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:closed
  • Created 6 years ago
  • Comments:14 (14 by maintainers)

github_iconTop GitHub Comments

4reactions
zoul0813commented, Dec 5, 2017

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.

0reactions
gezichenshancommented, Dec 6, 2017

@zoul0813 Thank you very much!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found