With minimal invasion I tried to get up and running with webapp-skel and found this problem:
The website generated for production tries to load ExtJS sources not from the static directory but from 3rdparty/ExtJS/src/app/Application.js (See the file ErrorinChromebrowser below).
The only thing I did was commenting in the app.js file (see index.diff) and adding a simple ExtJS to js/YourApp/app.js (see app.js).
If I add an Ext.require('Ext.Application') at the top of app.js I get this error during make production:
...
0.009 secs: loadAssets
resolvers.extJS4Dir: Skipping Application.js (not found)
1.739 secs: populate
...
I would be glad if somebody can help me figure out how I can make my Application work with webapp-skel and how to maybe include my own custom JS files in e.g. app.js.
Thank you in advance! Konrad
I found this place in http-pub/index.html.template:
/* Set loader to false when switching to production build */ Ext.Loader.setConfig({
enabled: true, paths: {
Ext: '3rdparty/ExtJS/src'}
});
When I set enabled to false and leave my app.js untouched, I get this error in Chrome:
Ext.Loader is not enabled, so dependencies cannot be resolved dynamically. Missing required class: Ext.app.Application f208c8ba4b.js:1 Object f208c8ba4b.js:1console.trace() Ext.apply.logf208c8ba4b.js:1 Ext.Error.Ext.extend.statics.raisef208c8ba4b.js:1 Loader.Ext.Loader.requiref208c8ba4b.js:1 (anonymous function)f208c8ba4b.js:1 Ext.applicationf208c8ba4b.js:1 (anonymous function)f208c8ba4b.js:1 f208c8ba4b.js:1Uncaught Ext.Error: Ext.Loader is not enabled, so dependencies cannot be resolved dynamically. Missing required class: Ext.app.Application
So how do I get ExtJS classes loaded-in dynamically or how can the dependency to this class be resolved?