ERROR: Uncaught TypeError: Cannot read property 'name' of undefined

start() {
//var self = this;

    this.UpdatePlaneShop();
}

// update (dt) {}

public UpdatePlaneShop(): void {

    for (this.i = 0; this.i < this.planeContent.childrenCount; this.i++) {
        cc.log(this.plane[this.i].name);
        cc.log(cc.find("txt_planeName", this.planeContent.children[this.i]).getComponent(cc.Label).string);
        cc.find("txt_planeName", this.planeContent.children[this.i]).getComponent(cc.Label).string = this.plane[this.i].name;
        cc.log("-------------------------------------------");
        cc.log(cc.find("txt_planeName", this.planeContent.children[this.i]).getComponent(cc.Label).string);
        cc.log("endend");
        cc.log("endend");
    }
}`文字缩进4格`

start中报错,系统就在不停地重复执行start

我所有代码都执行完了才报的这个错,搞了一下午了也不知道问题出在哪,暂时先用catch捕获了。
而且我用ts写的代码为什么控制台报的是js的错误

你重启一下