A difficult problem encountered in vue Development

developed with vue-cli, do a countdown function, and the effect has come out successfully, but the console has been reporting Cannot set reactive property on undefined, null, or primitive value: undefined, as shown in the figure, hoping to solve the doubt

.

clipboard.png

clipboard.png

Jul.03,2022

Today I also encountered, debug for a while, probably know what the problem, for the following people to solve this problem. When you encounter this problem, your 'act' attribute is directly undefind, to put it bluntly, it is {undefind:''}. You want to get this attribute or assign a value to it through obj.act, but the obj.act you get is undefind, so it is impossible to access it at all.


Why is the countdown forEach , and setInterval not better?


showlist [I] is undefined. You can first showList [I] = {} and then set


have you solved this problem? I have encountered the same problem

.
Menu