data-sly-resource resulting 404 custom error handler.
I have below code working fine in local and rendering selected experience fragment.
However the same code producing "404 custom error handler" in DEV environment, if I take out data-sly-resource code and have some dummy text, it is working fine.
Thing is, all the experience fragments exists in DEV author and author produces 404 with actual-page.html in network tab as well on page. <web-modal> html is empty.
<web-modal
style="position: fixed"
data-sly-test="${properties.fragmentPath}"
>
<sly
data-sly-resource="${@path=properties.fragmentPath,
selectors='content', wcmmode='disabled'}"
></sly>
<web-modal>
It has been for a while, I tried to figure out this issue, there is no useful information available in logs, except 404.