title: Why ERROR TypeError: Cannot read properties of undefined (reading 'length')?
body: <p>Why the component is rendering correctly but the browser console throws this error?:</p>
  <p>ERROR TypeError: Cannot read properties of undefined (reading 'length')</p>
  <p>Thank you in advance! :)</p>
  <p>member-profile.component.html:</p>
  <pre><code>  &lt;div *ngIf=&quot;member&quot;&gt;
    &lt;div&gt;&lt;img src=&quot;..\..\..\assets\images\avatar.png&quot; alt=&quot;Avatar&quot; style=&quot;width:60px; height: 60px;&quot;&gt;&lt;h3&gt;{{ member.name}} {{member.surname}}&lt;/h3&gt;&lt;/div&gt;
    &lt;div&gt;&lt;i class=&quot;fas fa-user-tie&quot;&gt;&lt;/i&gt;&lt;span&gt;Role: &lt;/span&gt;{{ member.role }}&lt;/div&gt;
    &lt;div&gt;&lt;i class=&quot;fas fa-at&quot;&gt;&lt;/i&gt;&lt;span&gt;Email: &lt;/span&gt;{{ member.email }}&lt;/div&gt;
    &lt;div&gt;&lt;i class=&quot;fas fa-user-tag&quot;&gt;&lt;/i&gt;&lt;span&gt;Username: &lt;/span&gt;{{ member.username }}&lt;/div&gt;
    &lt;div&gt;
      &lt;i class=&quot;fas fa-brain&quot;&gt;&lt;/i&gt;
      &lt;span&gt;Skills: &lt;/span&gt;
      &lt;div id=&quot;Expert&quot; *ngIf=&quot;expertList.length &gt; 0&quot;&gt;
        Expert
        &lt;span *ngFor=&quot;let skill of expertList&quot;&gt;
          {{skill.skill}}
        &lt;/span&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  </code></pre>