-
20 Dec 2011 12:44 PM #1
Using ext-all-debug.js versus ext-debug.js yields error ...
Using ext-all-debug.js versus ext-debug.js yields error ...
I have an MVC app that I've been developing using ext-all-debug.js (as is normal). Works fine -- no problems. However I am now trying to build it using the SDK tools, so I've switched my index.html to point to ext-debug.js and the app breaks. In FF, I get the following error:
In Chrome, i get the errorCode:c is not a constructor
Any suggestions? I thought these two libs would be interchangeable? What are the dependencies that need to be satified to use ext-debug.js?Code:Uncaught TypeError: object is not a function
thanks.
-
20 Dec 2011 12:46 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
ext-all-*js has every class in it. ext-*.js only has the core and the widgets (grid, form, etc) are not in there.
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.
-
20 Dec 2011 1:13 PM #3
Hmm. Could it be that I need to explicitly require all the Ext classes I use in my application? I went back and read the Getting Started for Ext 4 and it suggests that we use ext-debug.js from the start. I used ext-all-debug.js, which perhaps masked the fact that I am not explicitly requiring all my classes.
So do i have to explicitly require all these classes? There are a lot of them (it's a big application).
thx
-
20 Dec 2011 1:18 PM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
Yes. Using Ext.create will get you part of the way but if you are like me, I use xtypes a lot and using xtypes that aren't present will throw errors.
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.
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote