BosNaufal / vue2-autocomplete

Vue 2 Component to make Autocomplete element.
MIT License
233 stars 89 forks source link

Failed to mount component: template or render function not defined. #38

Closed IonelLupu closed 7 years ago

IonelLupu commented 7 years ago

Hi there,

It seems that the current version of vue2-autcomplete(0.2.1) and vue(2.4.2) gives an error:

' Failed to mount component: template or render function not defined. '.

Also. I think think there is a problem with the initValue option. It is empty in the created method(the value shows in devtools after about 200-300 ms)

BosNaufal commented 7 years ago

Hi @JCWolf, Thanks for giving me an issue. But, Would you like to reproduce it? So I can check what's the problem.

IonelLupu commented 7 years ago

Oh. I think it might not be related with vue or your package exactly. I was woking on a project with laravel and vuejs. After the update a few days ago it started showing me this error. It might be something with the laravel-mix package configurations or some mismatched versions.

This is my list of depencies:

"devDependencies": {
    "axios": "^0.16.2",
    "bootstrap-sass": "^3.3.7",
    "cross-env": "^5.0.1",
    "jquery": "^3.1.1",
    "laravel-mix": "^1.0",
    "lodash": "^4.17.4",
    "vue": "^2.1.10"
  },
  "dependencies": {
    "vue2-autocomplete-js": "^0.2.1"
  }
BosNaufal commented 7 years ago

Hi @JCWolf, I've just updated the component and see no problem with vue 2.4.2 https://github.com/BosNaufal/vue2-autocomplete/blob/c4b81a931fb182490e6f4b1c8fc6f37c6c80868f/package.json#L60

Please check the new version of autocomplete. And I think this is not the problem of the autocomplete but the other. I closed the issue but please feel free to comment on.

LeKristapino commented 7 years ago

Hi. I am also facing the same issue. I don't use package manager, but just added the dist/js file and get missing render function error

miladkian commented 6 years ago

Failed to mount component: template or render function not defined.