Uncaught ReferenceError: go is not defined

Hi,
I am getting below error to laod go js library.

Uncaught ReferenceError: go is not defined

Actually we are using Knock out and modular js and to load all js using require js. But we are referring the go.js directly on page.Most of time its working fine but some times getting go is null that is why getting above error. Please let us know how we ensure that go is loaded properly. Or any other idea to refer go.js such kind of application.

Thanks,

It sounds like you are trying to use GoJS when it hasn’t finished loading yet. If you are using RequireJS, why aren’t you also require’ing go.js?

In case you haven’t already seen it: http://gojs.net/latest/samples/require.html