Getting maximum call stack size exceeded

When I select any particular node and drag it then the cursor changes to hand sign and I get following error in console.

import AutoResize from 'diagram-js/lib/features/auto-resize/AutoResize';

import inherits from 'inherits';

import { is } from '../../util/ModelUtil';

 * Sub class of the AutoResize module which implements a BPMN
 * specific resize function.
export default function BpmnAutoResize(injector) {

  injector.invoke(AutoResize, this);

BpmnAutoResize.$inject = [

inherits(BpmnAutoResize, AutoResize);

 * Resize shapes and lanes.
 * @param {djs.model.Shape} target
 * @param {Bounds} newBounds
 * @param {Object} hints
BpmnAutoResize.prototype.resize = function(target, newBounds, hints) {

  if (is(target, 'bpmn:Participant')) {
    this._modeling.resizeLane(target, newBounds, null, hints);
  } else {
    this._modeling.resizeShape(target, newBounds, null, hints);

This is the code for bpmn auto resize which is in bpmn-js->lib->features->auto-resize folder

For further assistance, please share a CodeSandbox that reproduces your issue in a way that we can inspect it.