I have a requirement to change the namespaces from ui: to lightning: as ui namespaces are going to get depricated in May'21. While doing so, I'm getting the error from the following tag
<aura:dependency resource="markup://ui:inputDate" />
To change the namepsace from ui:inputDate to lightning:input for date, I need to provide type = "date". But in the above tag, I'm getting error while doing so. Below is the line
<aura:dependency resource="markup://lightning:input" type="date" />
Below is the error i'm getting
Failed to save CustomLightningComponent.cmp: Invalid type: date: Source
Also, I'm having this namespace in helper.js as well.
return this.createComponent('ui:inputDate', opts);
Can anyone please suggest on how to update ui:inputdate to lightning:input with type as date in the above component and helper.js
Thanks!