Tag Archives: not defined on the instance but referenced during render error

VUE: Property or method “deleteFun“ is not defined on the instance but referenced during render. [How to Fix]

A few days ago, I found a giant cow’s AI learning website, which is easy to understand, funny and humorous. I can’t help sharing it with you. Click to jump to the tutorial.

1. A click event reports an error:

Property or method "deleteFun" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property

2. Error reason: this method is undefined. I thought it was written in methods, but it’s not. My original writing:

3. Solution: correct the location code in the red box.

That’s it.