I have to add and remove components from a Modal dialog - so using

add code:

                               thistrans: component.getReference("v.thistrans"),
                               currencies: component.getReference("v.currencies"),
                               tdetails: component.getReference("v.thisdetails")
                               if (component.isValid()) { 
                                   component.set("v.body", tranvwr); 

and remove code


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.

  • What do you mean by second call ? Are you getting error when adding multiple of them ? Jun 21 '16 at 22:28
  • The component is being added in modal popup. Component will be added on each "show" and removed on each "hide". As the same modal frame is used for various actions. First time any component is is added, it rendered fine - but if the same action is invoked again - I am trying to make the same call to add the component and then it fails. All subsequent adds are failing.
    – Bhuvan
    Jun 22 '16 at 3:23
  • @Bhuvan Did you happen to find a solution for your problem? We're experiencing the exact same behavior.
    – Folkert
    Jul 13 '16 at 12:11
  • @Folkert - Looks like Summer16 breaks all force:xxx components. So switched over to ui:xxx components and everything works fine. For lookups I used Tony Scott's LookupSObject component with some changes. This all worked out pretty well.
    – Bhuvan
    Jul 13 '16 at 13:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.