geom_path: Each group consists of only one observation. Do you need to adjust the group aesthetic?

That looks like a problem with your data, as in itself a similar call with different data doesn't create that error:

ggpubr::ggline(mtcars,x = "mpg",y="cyl",color = "cyl")

You need to provide a reprex.