title: How to solve : [Vue warn]: Error when rendering component on the vue.js 2?
body: <p>My component code (<strong>SearchResultView.vue</strong>) is like this :</p>
  
  <pre><code>&lt;template&gt;
      ...
  &lt;/template&gt;
  
  &lt;script&gt;
  
      export default{
          props:['search','category','shop'],
          created(){
              ...
          },
          data(){
              return{
                  loading:false
              }
          },
          computed:{
              list:function(){
                  var a = this.$store.state.product;
                  a = JSON.stringify(a)
                  a = JSON.parse(a)
                  console.log(a.list[12])
                  ...
              }
          },
          methods:{
              ...
          }
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>When I check this : <code>console.log(a.list[12])</code> on the console, the result :</p>
  
  <p><a href="https://i.stack.imgur.com/AbnH5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AbnH5.png" alt="enter image description here"></a></p>
  
  <p>I want display value of name</p>
  
  <p>I try like this :</p>
  
  <pre><code>console.log(a.list[12].name)
  </code></pre>
  
  <p>On the console, exist error like this : </p>
  
  <blockquote>
    <p>[Vue warn]: Error when rendering component  at C:\xampp\htdocs\chelseashop\resources\assets\js\components\SearchResultView.vue: </p>
    
    <p>Uncaught TypeError: Cannot read property 'name' of undefined</p>
  </blockquote>
  
  <p>How can I solve the error?</p>