-
11 Feb 2013 6:58 AM #1
ExtJS 4.2 build with Grid
ExtJS 4.2 build with Grid
I'm unable to use Cmd to compile any projects that included certain components like Grid.
I've created a small test project with:
ViewPort
- Panel
- - Grid
When running the compiled app I always get this error in the console:
Uncaught Error: [Ext.Loader] Failed loading 'http://localhost/.../testproject/src/grid/plugin/BufferedRendererTreeView.js', please verify that the file exists - all-classes.js:11136
ExtJs 4.2.0.449, Cmd 3.0.2.288.
Cmd command:
complete view (SA 2.2 generated):Code:sencha compile -classpath=app.js,app,ext/src page -in=index.html -out=index-compiled.html
Just for fun I've tried to add Ext.grid.plugin.BufferedRendererTreeView to the requires list of the View, but the result is that an error is added to the console:Code:Ext.define('MyApp.view.MyViewport', { extend: 'Ext.container.Viewport', requires: [ 'Ext.grid.Panel', 'Ext.grid.column.Number', 'Ext.grid.column.Date', 'Ext.grid.column.Boolean' ], layout: { type: 'fit' }, initComponent: function() { var me = this; Ext.applyIf(me, { items: [ { xtype: 'panel', title: 'test', items: [ { xtype: 'gridpanel', title: 'My Grid Panel', columns: [ { xtype: 'gridcolumn', dataIndex: 'string', text: 'String' }, { xtype: 'numbercolumn', dataIndex: 'number', text: 'Number' }, { xtype: 'datecolumn', dataIndex: 'date', text: 'Date' }, { xtype: 'booleancolumn', dataIndex: 'bool', text: 'Boolean' } ] } ] } ] }); me.callParent(arguments); } });
Uncaught Error: [Ext.Loader] Failed loading 'MyApp/view/MyViewport.js', please verify that the file exists.
MyApp.view.MyViewport is still defined in all-classes, on line 85232.
My real project gives a few more error messages like, missing: "proxy/rest.js" and "http://localhost/..ProjectDeploy/src/data/proxy/SessionStorage.js"
(notice the difference in URL structure on the errors).
Removing the grid for the test-project gives a successful compile.
Have anyone compiled a Ext 4.2 project with a grid?Sven Tore Iversen
-
15 Feb 2013 7:17 AM #2
Still got the same problem with Ext JS 4.2 RC and Cmd 3.1 beta
Sven Tore Iversen
-
25 Feb 2013 2:01 AM #3
Still a problem with nightly 2013-02-21
Is anyone able to build with Ext 4.2?Sven Tore Iversen
-
25 Feb 2013 2:57 AM #4
Same problem here.
To avoid, I wrote at build.xml:
It isn't a good solution, but work.Code:<target name="-after-build"> <copy todir="${build.dir}/src"> <fileset dir="${app.dir}/ext/src" includes="grid/plugin/BufferedRendererTreeView.js" /> </copy> </target>
-
25 Feb 2013 3:12 AM #5
At least it's a good workaround
ThanksSven Tore Iversen
-
18 Mar 2013 4:32 AM #6
Hey Sencha folks, are you guys gonna give this one a look? Seems pretty silly that people with Grids in their apps can't do a build! This is still an issue for us in 4.2 GA.
-
18 Mar 2013 5:06 AM #7
This is resolved in GA
Sven Tore Iversen
-
19 Mar 2013 10:48 PM #8
We are still getting the same error. It seems it has not been resolved in the GA release. Can we please get help on this.
-
20 Mar 2013 12:23 AM #9
I not longer have this problem in GA when building with the latest cmd.
Have you updated cmd, and updated the project to just ga?Sven Tore Iversen
-
20 Mar 2013 1:48 AM #10
I was using Sencha Cmd 3.0. Just found out that 4.2 requires Sencha Cmd v3.1 RC2.
Thanx for the info. I'll try out if the latest cmd solves the problem.
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote