Describe the bug
Salesforce recently introduced lwc:if|elseif={property} and lwc:else directive for conditional rendering. But these commands were not recognized when we try to preview from local dev environment and received error as follows
Invalid directive "$lwc:if" on element
To Reproduce
Steps to reproduce the behavior:
Go to 'html file of LWC component'
Add a template tag as follows
Test. In JS make sure value=true
Preview the component in local dev environment
See error
Expected behavior
it should render the components properly
Screenshots
Desktop (please complete the following information):
Describe the bug Salesforce recently introduced lwc:if|elseif={property} and lwc:else directive for conditional rendering. But these commands were not recognized when we try to preview from local dev environment and received error as follows Invalid directive "$lwc:if" on element
To Reproduce Steps to reproduce the behavior:
Expected behavior it should render the components properly
Screenshots
Desktop (please complete the following information):