Basic wrapper widget around go.js leads to multiple define error

0
I have posted about this before but tried to simplify the problem by creating the simplest widget possible to show a go.js diagram.: https://github.com/BartReyserhove/testwidget Above the link to the widget. When including this on the home page of new app with another widget on the same page, I get the multiple define error which is really weird because this is a React pluggable widget. The interesting thing is that my widget actually works but all widgets that are loaded after my widget fail to l, no matter what type of widget (dojo or react)   Any ideas where to look for would be appreciated. I have a simple test project if needed.
asked
1 answers
0

This took me a lot of time to hunt down but then I stumbled on this post in the go.js forum: https://forum.nwoods.com/t/gojs-with-aurelia-mismatch-error/10170/4

 

and realized this could be the problem I was having. And indeed doing the change mentioned underneath in the go.js library solved my issue:

 

I see. I think it may be because our library uses an anonymous define:

define(go)

We’ll consider switching to a named define statement, which will probably fix this

define('go', go)

 

answered