component icon indicating copy to clipboard operation
component copied to clipboard

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

Open AlisaBen opened this issue 4 years ago • 0 comments

@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

AlisaBen avatar Jan 18 '22 10:01 AlisaBen