I get the error to draw, move, resize some rectangles over the image upload in React-shape-editor library. It\'s said "arr.slice is not a function or its return value i