I've started to use the sencha command for my now fairly big project (should have started earlier but hey, better late then never ;-)). I've created my all-classes.js using sencha app build
Anyway, I get issues with my models due to missing the BelongsTo and HasMany associations.
When load my app it tries to find the file http://localhost/association/belongsto.js.
I get the error [Ext.Loader] Failed loading 'association/belongsto.js', please verify that the file exists from all-classes.js
I created a simple example where I just add a model to the generated app using:
sencha generate app MyApp /path/to/MyApp
In Main.js I just add this line:
And then create the file MyApp/app/model/Dialog.js.
Running sencha app build will result in an application that generates the following errors:
// require: 'MyApp.model.Row', // Skipping require to avoid need of that file in this example code
model:'MyApp.model.Row', // Row model doesn't exist, but that is not relevant for this issue
Uncaught Error: [Ext.Loader] Failed loading 'association/hasmany.js', please verify that the file exists all-classes.js:1
Uncaught Error: [Ext.Loader] Failed loading 'MyApp/model/Dialog.js', please verify that the file exists
Looking at the all-classes.js I see that it's correct that the hasmany code hasn't been added. I tried adding an explict requires in the app.js to just force the inclusion of this code and it is then added but it doesn't remove the problem.
What can I do to get around this problem?
Sencha Command v22.214.171.124.