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.

Cannot read property 'create' of undefined

See original GitHub issue

Hey 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:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jloracudriscommented, Nov 22, 2019

It was a painfull bug to catch tho jeje great work @karol-f

1reaction
jloracudriscommented, Nov 22, 2019

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:

  • document-register-element to version: 1.14.3
  • vue-custom-element: 3.2.10

@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

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: Cannot read property 'create' of undefined error in ...
I'm trying to create a login system with Express , using Postgres and an ORM called Sequelize. Here is my code: user.js.
Read more >
Cannot Read Property of Undefined in JavaScript - Rollbar
Undefined means that a variable has been declared but has not been assigned a value. In JavaScript, properties and functions can only belong...
Read more >
STRIPE: Cannot read property 'create' of undefined
I use stripe for a payment online course project and when I use stripe in my app.js I have this result Cannot read...
Read more >
TypeError: Cannot read property 'create' of undefined ... - GitHub
Hi, I try to follow ReferencesMany helper's method, and get this error process.nextTick(function() { throw err;}); ^ TypeError:` Cannot read ...
Read more >
Uncaught TypeError: Cannot read property of undefined In
JavaScript TypeError is thrown when an operand or argument passed to a function is incompatible with the type expected by that operator or...
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