vue-comps / vue-collapsible

A simple collapsible / accordion
20 stars 4 forks source link

Throws error with Vue 2.1.8 #4

Open voronianski opened 7 years ago

voronianski commented 7 years ago
[Vue warn]: Error when rendering component <collapsible>: 
order.js:5998 Uncaught ReferenceError: _h is not defined
voronianski commented 7 years ago

@paulpflug it looks like a problem is somewhere in

__vue__options__.render = function(){with(this){return _h('ul',{class:computedClass},[_t("default")])}}

and relates to https://github.com/vue-play/vue-play/issues/40#issuecomment-267744513

voronianski commented 7 years ago

@paulpflug tried locally with npm run dev, it's the same:

index_bundle.js:1248 [Vue warn]: Error when rendering anonymous component: 
warn @ index_bundle.js:1248
index_bundle.js:2952 Uncaught ReferenceError: _h is not defined
    at Proxy.__vue__options__.render (index_bundle.js:16376)
    at VueComponent.Vue._render (index_bundle.js:2943)
    at VueComponent.updateComponent (index_bundle.js:3336)
    at Watcher.get (index_bundle.js:3659)
    at new Watcher (index_bundle.js:3651)
    at VueComponent.Vue._mount (index_bundle.js:3335)
    at VueComponent.Vue$3.$mount (index_bundle.js:6899)
    at VueComponent.Vue$3.$mount (index_bundle.js:9270)
    at init (index_bundle.js:2467)
    at index_bundle.js:2621
voronianski commented 7 years ago

@paulpflug rebuild will help

jasongerbes commented 7 years ago

I'm having the same issue

jamiel commented 7 years ago

Yes, seems to work by generating a new build/bundle.js using: npm i && npm run build:vue && npm run build:webpack inside the project.

admcfajn commented 7 years ago

Same issue here ReferenceError: _h is not defined with "vue": "^2.1.0", & webpack

If push comes to shove, this simple pattern is reliable: https://jsfiddle.net/crabbly/9a6bua6x/