antvis / component

🍱 AntV UI component based on G render engine.
https://github.com/antvis/component
MIT License
59 stars 39 forks source link

异常报错,Cannot read properties of null (reading 'addGroup') #264

Open AlisaBen opened 2 years ago

AlisaBen commented 2 years ago

@antv/component包中出现了异常报错,Cannot read properties of null (reading 'addGroup') 暂时不清楚原因,出错的代码

  protected initGroup() {
    const container = this.get('container');
    this.set(
      'group',
      container.addGroup({
        id: this.get('id'),
        name: this.get('name'),
        capture: this.get('capture'),
        visible: this.get('visible'),
        isComponent: true,
        component: this,
        delegateObject: this.getDelegateObject(),
      })
    );
  }

版本号是:0.8.24

image