Cannot read property 'create' of undefined
See original GitHub issueHey Great work with this lib, can you help me with this bug:
I am trying to have two bundles, both of them have the import vueCustomElement from 'vue-custom-element'
and also import 'document-register-element'
I am using 3.2.10 version.
this is the stack trace of the error: Uncaught TypeError: Cannot read property ‘create’ of undefined at new t.<computed> (document-register-element.js:2) at e.$d (vue-custom-element.esm.js:37) at new e (vue-custom-element.esm.js:82) at HTMLDocument.A.E.createElement (document-register-element.js:2) at Object.createElement$1 [as createElement] (vue.esm.js?efeb:5690) at createElm (vue.esm.js?efeb:5954) at createChildren (vue.esm.js?efeb:6058) at createElm (vue.esm.js?efeb:5959) at VueComponent.patch [as patch] (vue.esm.js?efeb:6482) at VueComponent.Vue._update (vue.esm.js?efeb:3948)
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (3 by maintainers)
Top GitHub Comments
It was a painfull bug to catch tho jeje great work @karol-f
Hey Guys sorry for the late response, i was able to go around the issue, it was a version issue of the document-register-element lib, but i think this should be taking into consideration so it doesnt happen with other versions: Versions where it works:
@karol-f the answer is yes i installed vue-custom-element in both bundles and that seems to work, the issue seems to be with lower versions of document-register-element