title: "Cannot read properties of undefined (reading 'attributes')" error in React (with Strapi)
body: <p>I'm unable to render items from my Strapi collection. Following is the code I wrote to get &quot;Photo&quot; of my uploaded products in Strapi.</p>
  <pre><code> &lt;Image
            style={{ height: 150, resizeMode: &quot;cover&quot; }}
            source={{
              uri: &quot;http://localhost:1337&quot; + item.Photo.data[0].attributes.url,  //Home.js:180
            }}
          /&gt;
  </code></pre>
  <p>[1]
  [1]: <a href="https://i.stack.imgur.com/hYSn6.png" rel="nofollow noreferrer">https://i.stack.imgur.com/hYSn6.png</a></p>
  <p>I'm also getting an &quot;Uncaught ReferenceError: process is not defined&quot; at (VM110:2), and &quot;The above error occurred in the  component:&quot; at (index.js:1)</p>