I have an AngularJS application, which is used inside an existing website.
something like this:
<div ng-app="configurator" ng-controller="SomeController as someController" data-auth="some-jwt-token" class="app-wrapp">...</div>
The website is using requireJS for their JavaScript stuff. And this is where my app breaks with following error:
mnty.1464947369.js:65 Uncaught Error: Mismatched anonymous define() module: function (){return factory()}
http://requirejs.org/docs/errors.html#mismatchmakeError @ mnty.1464947369.js:65v @ mnty.1464947369.js:65o @ mnty.1464947369.js:65requirejs @ mnty.1464947369.js:65(anonymous function) @ mnty.1464947369.js:70fetchPlugins @ mnty.1464947369.js:70process @ mnty.1464947369.js:70mount @ mnty.1464947369.js:70(anonymous function) @ main_3-21-6.js:149u @ mnty.1464947369.js:66fireWith @ mnty.1464947369.js:66ready @ mnty.1464947369.js:66a @ mnty.1464947369.js:65
app-bundled.js:6 Uncaught Error: [$injector:modulerr] Failed to instantiate module configurator due to:
Error: [$injector:modulerr] Failed to instantiate module rzModule due to:
Error: [$injector:nomod] Module 'rzModule' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
http://errors.angularjs.org/1.5.5/$injector/nomod?p0=rzModule
Some of used modules use UMD in their build, but most not. This is the key problem I think. How can I solve this issue?
(the AngularJS app ist bundled in a single JS-file and is included in footer of the page)