-
10 Jan 2013 5:49 PM #1
[Bug] Sencha compile not including classes when creating with alias
[Bug] Sencha compile not including classes when creating with alias
After compiling, I am receiving the following errors in my code:
Uncaught Error: [Ext.createByAlias] Cannot create an instance of unrecognized alias: series.pie
Uncaught Error: [Ext.createByAlias] Cannot create an instance of unrecognized alias: series.column
I am defining my charts using aliases for both series and axes:
When I change to this method of creating the series:Code:series: [ { type: 'column', ... } ]
and then compile again, the series errors are gone, and I am getting:Code:series: [ Ext.create('Ext.chart.series.Column', { ... }) ]
Uncaught Error: [Ext.createByAlias] Cannot create an instance of unrecognized alias: axis.numeric
It appears the compile is not including classes when they are created using aliases.
I am using v3.0.0.250 on windows
-
14 Jan 2013 2:42 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,118
- Vote Rating
- 453
You shouldn't use Ext.create outside of a function like that
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
14 Jan 2013 2:50 PM #3
That's not how I'm doing it. I was just demonstrating that if I did use that method, the compiler included the correct files.
-
21 Jan 2013 6:07 AM #4
The same with me
The same with me
Hello,
I'm in exact same situation using charts .
Any news here ?
For details I have prepared self contained example . Please see test.zip attached.
Just "ext" and "resources" folders are missing to keep file small .
Best Regards shekoff
Just needed to add :
Ext.require('Ext.chart.Chart');
Ext.require('Ext.chart.series.Column');
Ext.require('Ext.chart.axis.Numeric');
Ext.require('Ext.chart.axis.Category');
and it is working as expected !
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote