I am trying to add this custom element generated with Stencil to YouTube, which uses the custom-elements-es5-adapter.
However, if I use esm code, I get one type of error, if I use es5 code, I get another.
This code works for websites without the custom elements polyfill.
Uncaught TypeError: Illegal invocation
at n.f (pose-viewer.js:15)
at Function.getOwnPropertyDescriptor (pose-viewer.js:15)
at pose-viewer.js:44
at pose-viewer.js:58
at pose-viewer.js:130
Steps to reproduce
See example^
Expected behavior
This should work weather or not the custom elements polyfill is present.
Actual behavior
works with the browser implementation of custom elements, doesn't work with the polyfill.
Version
Unknown. This is hosted on YouTube, and I'm just trying to plug into it.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Description
I am trying to add this custom element generated with Stencil to YouTube, which uses the
custom-elements-es5-adapter
. However, if I use esm code, I get one type of error, if I use es5 code, I get another. This code works for websites without the custom elements polyfill.Example
at first, I wrote in the console:
and then:
but I got this error:
so I compiled to es5:
but I got this error:
Steps to reproduce
See example^
Expected behavior
This should work weather or not the custom elements polyfill is present.
Actual behavior
works with the browser implementation of custom elements, doesn't work with the polyfill.
Version
Unknown. This is hosted on YouTube, and I'm just trying to plug into it.
Browsers affected