Alignment must be a real Spot or Spot.Default

Hi. I’m seeing this error in my JS console. What does it mean and should I be worried about it?

It means that you have set GraphObject | GoJS API to a specific Spot. Maybe you set it to a Spot that is Spot | GoJS API ?

Ah OK, that makes sense. So a real spot is one that represents a single location, the special ones can represent a whole side of a rectangle? I’m guessing I’ve probable mistakenly used one of the sides where I shouldn’t have.

Yes, that’s probably it. I have improved the error message to at least say what the invalid Spot value is, although that might not be sufficient to make it easy to find where you are assigning it.

I would search for “.alignment =” and “alignment:” in my code.