You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using vite to run some examples. Somehow the Element object is getting assigned to _Element in functions generated from the inline evaluator, so that the code in the generated functions references the existing window.Element used to make DOM elements.
I found a workaround that's working fine for me, which is to put const Element = this at the very beginning of the inline block.
The text was updated successfully, but these errors were encountered:
@kungfooman I'm nto sure if this covers what you're doing but I was able to work around my issues by just avoiding using this in the inline function body:
I'm using vite to run some examples. Somehow the
Element
object is getting assigned to_Element
in functions generated from theinline
evaluator, so that the code in the generated functions references the existingwindow.Element
used to make DOM elements.I found a workaround that's working fine for me, which is to put
const Element = this
at the very beginning of the inline block.The text was updated successfully, but these errors were encountered: