First tip: Check if all files are listened in the jsb3 file. Sometimes there are some requirements who are not defined but still needed. I fixed this with either: - check the jsb3 file, and add the missing files manually or - Add requirements to the app.js file
Additionally: Check that the ext.js file is linked and dynamic lode is enabled.
Then recreate the jsb3 file and regenerate the app.
When I checked the jsb3 file, it does not include the controllers that are loaded dynamically.
How can I include dynamically loaded controllers in the jsb3 file?
--- I don't want to add every controller manually, as there are many controllers.
If I put "requires" in the app.js and put all the the dynamically loaded controllers in it, then the application doesn't load ?
added requires : "App.controller.Test" in app.js
Also if I write all the dynamically loaded controller in the requires => it will first load these controller => Then the whole purpose of dynamically loaded controllers is defeated.
Earlier I defined the controllers in the array controllers. But as the number of controllers increased, the application takes significantly more time to load. To overcome this problem, I decided to load controllers dynamically. But now I can't minify the application as controllers are not mentioned in the controllers.