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.

TypeError: Cannot read property 'customElements' of undefined - html2Canvas

See original GitHub issue

I’ve seen a few issues mention CustomElements, however I’m not sure if they’re resolved.

We make extensive use of html2canvas for rendering SVGs etc in 3D.

I’m getting this error:

Failure loading node:   TypeError: Cannot read property 'customElements' of undefined
    at new HTMLElement (/home/owner/workspace/client/exokit/src/DOM.js:1352:30)
    at new DocumentFragment (/home/owner/workspace/client/exokit/src/Document.js:520:5)
    at new Range (/home/owner/workspace/client/exokit/src/Document.js:532:5)
    at Document.document.createRange (/home/owner/workspace/client/exokit/src/Document.js:71:32)
    at Support.testRangeBounds (/static/js/7.chunk.js:1493:24)
    at new Support (/static/js/7.chunk.js:1480:29)
    at renderNode (/static/js/7.chunk.js:1378:19)
    at html2canvas (/static/js/7.chunk.js:1342:12)
    at NewShader.__render (/static/js/7.chunk.js:1236:26)
    at NewShader.__ready (/static/js/7.chunk.js:1272:12)
    at NewShader.__setTexure (/static/js/7.chunk.js:952:14)
    at NewShader.__validateSrc (/static/js/7.chunk.js:1074:11)
    at NewShader.__updateTexture (/static/js/7.chunk.js:1039:14)
    at NewShader.update (/static/js/7.chunk.js:879:12)

Does this mean CustomElements and Html2Canvas are not supported?

Thanks

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
bknillcommented, Jul 1, 2019

Updated and this is fixed.

0reactions
avaercommented, Jul 1, 2019

The prerendered sprite sheet will be the fastest way, performance-wise. It’s probably not a good idea to have 100 iframes, though it could work if it was packed into a single iframe.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot read property 'canvas' of undefined · Issue #1195 · ...
I'm getting a TypeError html2canvas.js:2264 Uncaught TypeError: Cannot read property 'canvas' of undefined at html2canvas ...
Read more >
jquery : html2canvas alternative - javascript
The errors I receive are the following: TypeError: Cannot read properties of undefined (reading 'getObject'); Uncaught (in promise) TypeError: ...
Read more >
how to use html2canvas angular Code Example
import html2canvas from 'html2canvas'; ... ModuleNotFoundError: No module named 'PySimpleGUI' · TypeError: Cannot read property 'version' of undefined ...
Read more >
class extends value undefined is not a constructor or null ...
it's looking for a property on the imported module named Base , but there is no such property. You exported the class as...
Read more >
Splitter error in new project | Angular - EJ 2 Forums
ERROR TypeError: Class constructor Component cannot be invoked without ... TypeError: Cannot read property 'ganttProperties' of undefined.
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