In ArcGis Online, the map looks correct, with the labels above the streets.
When I open the same map in JavaScript, it puts the label on top of the street line and gives this error:
"Found invalid label placement type above-along for esriGeometryPolyline. Defaulting to center-along".
I am not doing anything in JavaScript with the label placement, I am simply opening the map that was created in ArcGis Online.
Was this ever resolved? I am getting similar behavior on a map service layer with portal 10.9.1 and JavaScript 4.26.