Got this error on a particular path, apparently no different from fully functional paths in the same project. It broke the script and hindered the animation from running. The error pointed to line 540.
Solved it by adding if (typeof position !== 'undefined') on line 539, making it:
if (typeof position !== "undefined") {
path.position = {
x: data.offset.left + position.x,
y: data.offset.top + position.y
};
}
The shape now animates perfectly, not missing any paths.
Got this error on a particular path, apparently no different from fully functional paths in the same project. It broke the script and hindered the animation from running. The error pointed to line 540.
Solved it by adding
if (typeof position !== 'undefined')on line 539, making it:The shape now animates perfectly, not missing any paths.