View Full Version : New sencha compiler produces output, but it fails with Cannot create an instance ...

26 Sep 2012, 4:20 PM
I am trying to compile my old application with the new Sencha Cmd. I am following the docs in "Single Page Ext JS Apps" in the docs. I have put the compiler directives into the html file, and compile with this:

C:\inetpub\wwwroot\atmgodevel>sencha compile -classpath=app.js,app,extjs/src,extjs/examples/ux/layout,../FieldWorksX page -in index.html -out build/index.htmlSencha Cmd v3.0.0.141
[INFO ] Compiling page null
[INFO ] Processing classPath entry : C:\inetpub\wwwroot\atmgodevel\sencha-compile-temp-dir
[INFO ] Processing classPath entry : app.js
[INFO ] Processing classPath entry : app
[INFO ] Processing classPath entry : extjs\src
[INFO ] Processing classPath entry : extjs\examples\ux\layout
[INFO ] Processing classPath entry : ..\FieldWorksX
[INFO ] Processing class inheritance graph
[INFO ] Processing source dependencies
[INFO ] Concatenating output to file C:\inetpub\wwwroot\atmgodevel\build\all-classes.js
That completes with no errors, but when I go to load the page, I get the following error:

Uncaught Error: [Ext.createByAlias] Cannot create an instance of unrecognized alias: layout.border
What does that mean??

26 Sep 2012, 4:21 PM
By old, I mean Ext JS 4.1.1

26 Sep 2012, 5:33 PM
It means you need to add border layout to the requires config in the view that uses it.