I have to add and remove components from a Modal dialog - so using
add code:
$A.createComponent("pbrdev:TransactionViewer",
{
thistrans: component.getReference("v.thistrans"),
currencies: component.getReference("v.currencies"),
tdetails: component.getReference("v.thisdetails")
},
function(tranvwr){
if (component.isValid()) {
component.set("v.body", tranvwr);
}
});
and remove code
component.set("v.body","");
this works fine on the first call but getting this error on second call to add
Abstract component without provider def cannot be instantiated : markup://force:inputField : undefined
the component being created/added is pure markup and contains no javascript or css.
Update: This error only happens if the component contains any of the force: fields, like force:inputField, force:outputField, etc. When using simple ui: fields or html fields only, this error doesn't happen.
Any help is greatly appreciated.