Vue: Cannot read property '_normalized' of undefined

Created on 6 May 2019  Â·  5Comments  Â·  Source: vuejs/vue

I have a data article like this: {a:{name:'aa'},id:1}
When I write this
The page will report 'Cannot read property name with undefined'
But this a does have data, so I used {{article.a&&article.a.name}} and reported Cannot read property '_normalized' of undefined
Why is this happening? 。。。

All 5 comments

Hello, thank you for taking time filling this issue!

However, we kindly ask you to use our Issue Helper when creating new issues, in order to ensure every issue provides the necessary information for us to investigate. This explains why your issue has been automatically closed by me (your robot friend!).

I hope to see your helper-created issue very soon!

@bolosea Did you find a solution to this?

As of Feb 2020 Error is still unresolved

Hello my friend . I'm not very good at English. This error is due to the fact that your data has not yet been read to the line where you left the article.
You can fix this error by setting "if".
result =>

<elemnt>
  {{article ? article.a.name : '' }}
</elemnt>

bad :(
<router-link to="null"> products </router-link>

my error param is "to" "null" pass route valid

god :)

<router-link to="/products"> products </router-link>

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gkiely picture gkiely  Â·  3Comments

seemsindie picture seemsindie  Â·  3Comments

paulpflug picture paulpflug  Â·  3Comments

aviggngyv picture aviggngyv  Â·  3Comments

bdedardel picture bdedardel  Â·  3Comments