I copy pasted the code for flowchart from the gojs flowchart documentation .i continuously get this error in my browser console and unable to use go js library. When i console.log() than i found error is from this ,but unable to figure out what is wrong so plz give me some suggestion . I am using it in reactjs.
myDiagram.nodeTemplateMap.add("", // the default category
$(go.Node, "Spot",self.nodeStyle(),
// the main object is a Panel that surrounds a TextBlock with a rectangular Shape
$(go.Panel, "Auto",
$(go.Shape, "Rectangle",
{ fill: "#00A9C9", stroke: null },
new go.Binding("figure", "figure")),
$(go.TextBlock,
{
font: "bold 11pt Helvetica, Arial, sans-serif",
stroke: lightText,
margin: 8,
maxSize: new go.Size(160, NaN),
wrap: go.TextBlock.WrapFit,
editable: true
},
new go.Binding("text").makeTwoWay())
),
// four named ports, one on each side:
self.makePort("T", go.Spot.Top, false, true),
self.makePort("L", go.Spot.Left, true, true),
self.makePort("R", go.Spot.Right, true, true),
self.makePort("B", go.Spot.Bottom, true, false)
));