Hi Team, We are trying to upgrade GoJS to 3.x. Once we upgrade, we are getting a few console errors & UI is not getting loaded.
Error:
Uncaught TypeError: Cannot read properties of undefined (reading ‘fill’)
at Bi.PO (go.mjs:18:126843)
at Bi.bb (go.mjs:18:125957)
at Ft.getPositions (go.mjs:13:82493)
at je.routeLinks (go.mjs:56:153196)
at Ft.doLinkRouting (go.mjs:13:77066)
at Ft.ZL (go.mjs:13:78853)
at Ft.CM (go.mjs:13:78014)
at Ft.br (go.mjs:13:23642)
at Ft.maybeUpdate (go.mjs:13:22834)
at go.mjs:13:22757
For version 3.0 we reorganized the code to support more generalized link routers. The Router for AvoidsNodes routing is built into the library for compatibility.
Try using the go-debug.mjs library to see if it reports any problems with your code.
Is there any way for you to give us a minimal stand-alone reproducible case for us to debug it?
Hi, @walter I tried using the routing property in the GoJS sample but, didn’t face any issues. But, in our diagram, we are getting the below error & diagram is not loaded. We have used this property in one place in the Link node.
Yes, GoJS v3 compatibly implements the older enumerated value names. So for example Link.AvoidsNodes === Routing.AvoidsNodes.
What is your import statement in each of your source files that involves the GoJS library?
What JavaScript framework and build tools are you using, and which versions? I believe all of the recent ones automatically make use of the package.json declarations specifying which library file to use for different situations, including whether you are building for development or for production.