• Don Mac
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
I can't get my app to work when I include a force:outputField component in it. For example, if I have the following then it's OK and I get the correct value rendered in my app:
<ui:outputText aura:id="pcode" value="{!v.product.productCode}"/>
...but if I change it to use force:outputField like so:
<force:outputField aura:id="pcode" value="{!v.product.productCode}"/>
...then I get the following failure when the app tries to render the component where I have the outputField:

"Assertion Failed!: Abstract component without provider def cannot be instantiated : markup://force:outputField : undefined. Please try again."

Is there something I am missing? This outputField component does exist in the developer reference (https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/aura_compref_force_outputField.htm).