We recently hit an issue with two plugins clashing and causing the error:
require.js:168 Uncaught Error: Mismatched anonymous define() module: function(a) {...
Also mentioned in:
https://moodle.org/mod/forum/discuss.php?d=87044#p1544394
And logged here:
Guy Thomas fixed it by moving the following code (details omitted) from above a define to inside it:
(function() {
var pluginJSURL = function(path) {
...
require.config({
paths: {
// Vendor code.
...
},
shim: {
...
}
}
});
})();
The clashing code from mod_bootstrapelements is attached.
I'd really like to understand what is going on and why the code in mod_bootstrapelements is causing these clashes. When installed as the only Moodle plugin there are no errors.