Again: dealing with 3rd-party JS modules in Plone 5 is a major pain

The other part of the

Error: Mismatched anonymous define() module: function (a).....

is

var e = new Error(msg + '\nhttp://requirejs.org/docs/errors.html#' + id);

which starts at line 165 in require.js