Question:

Failed to save ListView.cmp: No MODULE named mockdataFaker found: Source

Elena: 2 weeks ago

Getting the below error while trying to create a data table using the link -https://developer.salesforce.com/docs/component-library/bundle/lightning:datatable/example

Failed to save ListView.cmp: No MODULE named mockdataFaker found: Source

code cmp-

<aura:component >
    <aura:import library="lightningcomponentdemo:mockdataFaker" property="mockdataLibrary"/> 
    <aura:attribute name="data" type="Contact"/>
    <aura:attribute name="columns" type="List"/>  

    <aura:handler name="init" value="{! this}" action ="{!c.this}"/>
    <div style="height: 300px">
        <lightning:datatable
                             keyField="id"
                             data="{! v.data }"
                             columns="{! v.columns }"
                             hideCheckboxColumn="true"
                             onrowselection="{! c.getSelectedName }"/>
    </div>
</aura:component>

Answer:
Savannah: 2 weeks ago

Already discussed here (https://salesforce.stackexchange.com/questions/237946/lightning-component-mock-data-import). Please go through the discussion.