Skip to content
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

[Vue warn]: Error in callback for immediate watcher "value": "TypeError: Cannot read property 'indexOf' of undefined" #275

Open
2 tasks done
brickgale opened this issue Jan 15, 2020 · 3 comments

Comments

@brickgale
Copy link

I'm submitting a ...

  • bug report

How are you importing Vue-simple-suggest?

  • ES6 (import VueSimpleSuggest from 'vue-simple-suggest')

What is the motivation / use case for changing the behavior?

  • this is only a vue warning but might cause some problems, vue.common.dev.js:1893 TypeError: Cannot read property 'indexOf' ... in displayProperty function, on line 300 at vue-simiple-suggest.vue. im not sure the implications but the fix maybe is changing ~process.env.NODE_ENV to process.env.NODE_ENV or the change the whole condition to if(typeof process.env.NODE_ENV != 'undefined' && process.env.NODE_ENV.indexOf('dev')).

Please tell us about your environment:

  • Vue.js Version: 2.6.11
  • Vue-simple-suggest version: 1.10.0
@DoubleTime
Copy link

DoubleTime commented Jan 21, 2020

similar error on v1.10.0, v1.9.6 are good.

Error in callback for immediate watcher "value": "ReferenceError: process is not defined"

error occur if :value is not define inside <vue-simple-suggest :input="xxx">.

@im1x
Copy link

im1x commented Nov 19, 2020

similar error on v1.10.0, v1.9.6 are good.

Error in callback for immediate watcher "value": "ReferenceError: process is not defined"

error occur if :value is not define inside <vue-simple-suggest :input="xxx">.

I updated "vue-simple-suggest" to version 1.10.3 and got the same error. I tried adding ":value" but it didn't help. Are there any other ideas how to fix this?

@ghost
Copy link

ghost commented Mar 15, 2021

I'm having the same issue. Oddly only on one of the vue-simple-suggest instances, yet it has identical configurations as the others:
<vue-simple-suggest :list="streetlist" v-model="newRow.street" @blur="add(newRow)" :filter-by-query="true" />

          If I comment (only this one) out, the error disappears.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants