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 http://gojs.net/latest/api/symbols/GraphObject.html#alignment to a specific Spot. Maybe you set it to a Spot that is http://gojs.net/latest/api/symbols/Spot.html#isNoSpot ?

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.