23 Apr 2013 1:32 PM #1
TypeError: App is not a constructor
My application works fine with ExtJS 4.1.3. With 4.2.0 and 4.2.1 I have a message : " TypeError: App is not a constructor http://localhost/extjs/ext-all-debug.js Line 7787 " This is an error [Stopper sur une erreur]
In fact my code is broken at line 7787 inside ext-all-debug.js : Ext.app.Application.instance = new App();
With ExtJS 4.1.3 an application is generated like this (line 6926):
and it works fine.
I start my application from Application.js :
24 Apr 2013 1:57 PM #2
Now ExtJS 4.2.1 works
I founded : I added to each controller :
and my Viewport is O.K
26 Apr 2013 7:05 AM #3
I have returned to my program and the error "App is not a constructor" appears.
26 Apr 2013 11:58 AM #4
New with ExtJS 4.2.1 relatively to 4.1.1
ExtJS 4.2.1 introduces a new model : 'Ext.data.TreeModel'.
Now it's O.K.
30 Apr 2013 8:41 AM #5
These answers are all pretty unclear.
My code worked fine with 4.1, upgrade to 4.2, and only in FireFox, I get the exact same error.
Sencha, how do we fix this ?
17 May 2013 9:15 AM #6
18 May 2013 4:37 AM #7
Always with Firefox : from time to time I have this mesage but when I restart my appli then it's O.K. I think that it is an initialisation problem.
20 May 2013 7:58 AM #8
I'm getting this _every_ time unfortunately, only on firefox, my application just won't run.
Upgrading minor libraries completely breaks my application ? How is this even remotely acceptable from a commercial product?
20 May 2013 8:52 AM #9
20 May 2013 10:06 AM #10
When I look under firedebug I find that in many cases not all controllers, stores, etc, are loaded/accessible. But my appli.goes fine.
When error message goes then nothing appears before the crash : I restart my appli and all goes fine.