-
7 Nov 2012 11:04 AM #1
Where do I put external components to be seen by build?
Where do I put external components to be seen by build?
I have an ExtJs single page application built in Architect working.
I have some external components defined in "GeoExt".
My file structure looks like this:
My app.js looks like this:Code:~/Sencha/projects/MyApp | |-----app | |-----GeoExt | |-----index.html | ...
I can run the application from the index.html in "MyApp" and the loader can find all the source code and my application runs.Code:Ext.Loader.setConfig({ enabled: true, paths: [ Ext: ".", GeoExt: "./GeoExt" ] }); Ext.application({ requires: [ 'GeoExt.panel.Map' ], views: [ 'MapContainer' ], name: 'MyApp' });
The problem occurs when I try:
I get an error saying: "Failed to find file for GeoExt.panel.Map".Code:sencha build app
If I change the directory structure and app.js as follows the build works.
Code:~/Sencha/projects/MyApp | |-----app | | | | | |---GeoExt | | |-----index.html | ...Why does the "build" command look in the app directory? Is this the correct location for these files to be located?Code:Ext.Loader.setConfig({ enabled: true, paths: [ Ext: ".", GeoExt: "./app/GeoExt" ] }); Ext.application({ requires: [ 'GeoExt.panel.Map' ], views: [ 'MapContainer' ], name: 'MyApp' });
Worth
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote