PDA

View Full Version : cls.xtype undefined on Ext.reg('component', Ext.Component) when run over HTTP



saprot
5 Aug 2010, 5:34 AM
Hi everybody!

I've got strange problem with my 3.2.1 ExtJS application. When it is ran on my localhost, everything works perfect. However, after uploading to server where is error:

cls.xtype is undefined

and it is located in function:



registerType : function(xtype, cls){
types[xtype] = cls;
cls.xtype = xtype;
},


After debugging with firebug I've found which line calls that function. It is:

Ext.reg('component', Ext.Component);

And this is a bit strange, because the same code works on my local server.

Could you please help me a little bit? :)

Condor
5 Aug 2010, 5:40 AM
You would get that error is Ext.Component == null.

There must be something wrong with your library.
1. Does your server contain the correct library?
2. Did you clear you browser cache?

saprot
5 Aug 2010, 5:57 AM
It's not the problem of cache, I've tried on many browsers not only on my computer... and my library was reuploaded many times, so its ok.

tleperou
13 Apr 2011, 12:33 AM
Hi,

I've the same issue. This not come from the Ext.reg() of my Obj because even if it's commented, error still appear.

Say me Condor, this issue could be a kind of library conflict.. ?
Just yesturday I didn't have this one .. and I up to date the Ext lib.

No matter, it not impede the app work,
thx

tleperou
13 Apr 2011, 12:48 AM
Resolved,

that was I thought, just an inattention coding error,
I had conflict between obj and reg declaration (APP.Obj / reg(APP. ..).

Juste be carefull with these,
confusion is esay with many obj