简体   繁体   中英

@ComputedFrom throws “Cannot set property 'dependencies' of undefined”

I am trying to return initial number minus total array length, but i am getting an error. I tried with a simple single number but my problem still persists.

I don't understand what this error means:

"Cannot set property 'dependencies' of undefined"

What are the 'dependencies'?

从实现错误计算

the error you get is because @computedFrom should be used on properties, and not on functions.

change

getpersonListCount()
{
}

to

get personListCount()
{
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM