title: Fetching data from local json file
body: <p>I have a problem with the module not being found in React import. Here is my API from the file:</p>
  
  <pre><code>[   
      {
          "poolNumber": "1",
          "sender": "Damir",
          "notRoutedReason": "NumberDoesntExist",
          "sentDateTime": "2019-08-13T08:01:48.1535075Z",
          "requestedDeliveryReportMaskText": "Submitted",
          "deliveryReportReceivedDateTime": "2019-08-13T08:01:48.1535075Z",
          "isUnicode": "FALSE",
          "messageUUID": "4889e632-a314-45e2-89fd-35b07b4f9ff2"
      },
      {
          "poolNumber": "1",
          "sender": "Damir",
          "notRoutedReason": "NumberDoesntExist",
          "sentDateTime": "2019-08-13T08:01:46.3254032Z",
          "requestedDeliveryReportMaskText": "Submitted",
          "deliveryReportReceivedDateTime": "2019-08-13T08:01:46.3254032Z",
          "isUnicode": "FALSE",
          "messageUUID": "7f48626f-7dfe-4772-99e6-3a4c1df15e0e"
      }
  ]
  </code></pre>
  
  <p>And then I'm trying to call it under imports so I can log(data)..</p>
  
  <pre><code>import React from 'react'
  
  import dataJSON from './data.json'
      const getData = async () =&gt; {
          const response = await fetch(dataJSON)
          const data = await response;
          return getData
      }
  </code></pre>
  
  <p>But I can't fetch data coz it isn't getting module I need.
  How can I fix this?</p>