I am new to Sitecore sxa, I have got SXA Scriban template being used in rendering variant. as /Component-x/default/Link and this Link has a field where following snippet is provided.
{{ if ( o_pagemode.is_experience_editor_editing ) }}
<div style="display: flex; flex-direction: column; padding: 10px;">
<div><b>Title:</b> {{ sc_field i_item 'Title'}}</div>
<div><b>CssClass:</b> {{ sc_field i_item 'CssClass'}}</div>
<div><b>Link:</b> {{ sc_field i_item 'Link'}}</div>
</div>
{{ else }}
{{ text = i_item.Title }}
{{ linkInfo = (sc_link_info i_item 'link') }}
{{ if linkInfo.text != "" }}
{{ text = linkInfo.text }}
{{ end }}
<a href="{{ linkInfo.url }}" alt="{{ text }}" title="{{ text }}" >
<svg>
<use xlink:href="/img/abcd/xyz.svg#{{ i_item.CssClass }}"></use>
</svg>
<span class="myClass">{{ text }}</span>
<i class="icon-indicator"></i>
</a>
{{ end }}
I am surely missing something here, and am thrown out with following error in just CD, while is ok in experience editor
/Component/d/Link(9,20) : error : The function
sc_link_info
was not found.