I followed these steps to create a lookup field that works well in the Lightning App Preview. However, if I try to add this component to a page, the lookup field is no longer rendered at all.
<aura:attribute name="contact" type="Contact"
default="{ 'sobjectType': 'Contact' }" access = "public"/>
<force:inputField aura:id="accountid"
value="{!v.contact.AccountId}"/>
Any ideas on why this would be happening?