Uncaught ** Assertion failed in Wijmo: Element is already hosting a control

Posted by: abhijeet.jaiswal on 15 September 2022, 6:02 am EST

  • Posted 15 September 2022, 6:02 am EST

    I’m using flexsheet in our project. Everything was fine until we thought of upgrading react version from 17.0.2 to 18.2.0.

    I’ve started getting error saying - Uncaught ** Assertion failed in Wijmo: Element is already hosting a control.

    Grid/flesheet is not even being rendered error get throws from initializeFlexSheet function.

    
    flex.deferUpdate(() => {
          const grid = new wjGrid.FlexGrid(document.createElement('div'), {
            itemsSource: data,
            columns: getColumns(),
          });
          flex.addBoundSheet('PriceAssessment', data, 0, grid);
          data.trackChanges = true;
          flex._contextMenu.show = () => false;
        });
    
    

    can someone please help, We are stuck on this from last few days.

  • Posted 15 September 2022, 11:18 pm EST

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels