I have a pretty complex svg that I'm trying to morph and it throws the "ERROR: malformed path data: undefined" when I use the convertToPath() function. The original svg code that I got from illustrator threw the same error and the codepen has the cleaned up version I got from https://jakearchibald.github.io/svgomg/