scrollView.content.addChild加载出错。


代码是这样,然后我接教程一下引用了结果出错
properties: {
scrollView:cc.ScrollView,
heroPrefad:cc.Prefab
},

    // LIFE-CYCLE CALLBACKS:

     onLoad () {
        
         for(let index=0;index<20;index++){
             this.scrollView.content.addChild(this.grnerateHoro());
              
         }
     },

    grnerateHoro(){
        return cc.instantiate(this.heroPrefad);
    },

这是错误:
Uncaught TypeError: Cannot read property ‘addChild’ of null

请问各位大神这是什么问题。

你这个脚本的heroprefad是不是没拖进去prefab