my format is :
I don't see 'curvePaths' as a valid property, only 'paths':
https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polyline.html