Breaking changes after upgrading to v3

I upgraded my project to the following versions :

“gojs”: “^3.0.5”,
“gojs-angular”: “2.0.7”,

Angular version is 18.

Now, I get the following error in the console any time I have the diagram component opened :

But most importantly, I have a new behavior that breaks my application: in my palette, nodes have a key property sets to some string. For instance I have a node, which key property is SystemTask. When I drag this node from the palette to the diagram, I do the following :

I set stepDefinitionCode to be the value of key. I’d expect key to be SystemTask, but instead it is a negative number (-2, -3, depending on how many nodes I’ve dropped).

If I roll back to gojs 2, I don’t have this problem.

What should I do ?

That error message is not coming from the GoJS library. We don’t know what it means.

Yes, as you can see in the release notes, Change Log | GoJS, the default value for the Model.copiesKey property has changed from true to false. Just set that property to true on each model.

If you are upgrading now, I highly recommend that you update to the latest version, which is now 3.0.12.

Thank you, that was it.

The error is gone too after setting this property to true.