添加脚本报错,请帮忙分析一下

添加脚本报这个错误

帮忙看看啊

看错误啊, cc.Component 没找到…

但是有这个啊

出错的文件发上来

我的就是hello world那个 demo

cc.Class({
extends: cc.Component,

properties: {
    label: {
        default: null,
        type: cc.Label
    },
    // defaults, set visually when attaching this script to the Canvas
    text: 'Hello, World!'
},

// use this for initialization
onLoad: function () {
    this.label.string = this.text;
},

// called every frame
update: function (dt) {

},

});
就这个DEMO 但是拉动属性检查器 就报错