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
<!-- index.webc --><imgsrc="my-image.jpeg" alt="An excited Zach is trying to finish this documentation">
<!-- _includes/components/img.webc --><scriptwebc:type="js" webc:root>if(!alt){thrownewError("oh no you didn’t");}`<img src="${src}" alt="${alt}">`;</script>
when i try to serve, i get the following error:
1. Having trouble rendering webc template ./index.webc (via TemplateContentRenderError)
2. Circular dependency error: You cannot use <img> inside the definition for ./_includes/components/img.webc (via Error)
Original error stack trace: Error: Circular dependency error: You cannot use <img> inside the definition for ./_includes/components/img.webc
Is this a bug? I am using the latest versions.
The text was updated successfully, but these errors were encountered:
<scriptwebc:type="js">if(!alt){thrownewError("oh no you didn’t");}`<img src="${src}" alt="${alt}" webc:root>`;</script>
That said, I think it’s time to relax the aggressiveness of the error a bit!
I think we should change the behavior so that using <img> instead of img.webc should allow it and just use the tag plain instead of re-resolving with WebC.
I tried to use this example from the docs:
when i try to serve, i get the following error:
Is this a bug? I am using the latest versions.
The text was updated successfully, but these errors were encountered: