-
12 Sep 2012 12:50 AM #1
Answered: ST 2.1.0 beta3 and new Sencha Cmd Beta: generated app not working
Answered: ST 2.1.0 beta3 and new Sencha Cmd Beta: generated app not working
Hey guys,
I downloaded ST 2.1.0 beta3 and installed the new Sencha Cmd Beta.
I generated a new app using the sencha command as I always do:
d:\xampp\htdocs\sencha-touch-2.1.0-beta3\sencha generate app mybeta3app ../mybeta3app
When I'm starting the app in Chrome it's not working as expected, the console output looks like this:
Failed to load resource: the server responded with a status of 404 (Not Found)
Uncaught Error: [Ext.Loader] Failed loading './event/Dispatcher.js', please verify that the file exists
Failed to load resource: the server responded with a status of 404 (Not Found)
Uncaught Error: [Ext.Loader] Failed loading './event/publisher/Dom.js', please verify that the file exists
Any ideas?
-
Best Answer Posted by hayesjim
Yes, I found the same.
Firstly : if you look in the docs that came with the ST beta3 you'll find a clue :
sencha-touch-2.1.0-beta3/docs/index.html#!/guide/getting_started
Notice there is a debug path for EXT set in app.js in the docs which is not in the generated app.js : so add this at the top :
//<debug>
Ext.Loader.setPath({
'Ext':'sdk/src'
});
//</debug>
And then notice that the app build did not copy the sdk/src files over in any case, so copy those from the sencha-touch-2.1.0-beta3 folder.
It then worked for me - sorry to be a bit vague, I was in a bit of a bad temper when this happened to me and I didn't take any notes at the time
-
12 Sep 2012 5:54 AM #2
Yes, I found the same.
Firstly : if you look in the docs that came with the ST beta3 you'll find a clue :
sencha-touch-2.1.0-beta3/docs/index.html#!/guide/getting_started
Notice there is a debug path for EXT set in app.js in the docs which is not in the generated app.js : so add this at the top :
//<debug>
Ext.Loader.setPath({
'Ext':'sdk/src'
});
//</debug>
And then notice that the app build did not copy the sdk/src files over in any case, so copy those from the sencha-touch-2.1.0-beta3 folder.
It then worked for me - sorry to be a bit vague, I was in a bit of a bad temper when this happened to me and I didn't take any notes at the time
-
12 Sep 2012 6:28 AM #3
-
12 Sep 2012 8:32 PM #4
I think there is no need to copy the sdk folder.
Use the folder named 'touch' which would be already available when you generate an app.
Have you tried building your app?
I get an 'classSystem is not defined' error...
-
12 Sep 2012 9:31 PM #5
Thanks for the solution.
I also noticed that the touch folder was copied when the app was generated so added the following at the top of app.js and it worked for me:
Code://<debug> Ext.Loader.setPath({ 'Ext':'touch/src' }); //</debug>
-
12 Sep 2012 10:58 PM #6
Sencha Command Error when trying to create app using the latest "SenchaCmd-3.0.0.122"
Sencha Command Error when trying to create app using the latest "SenchaCmd-3.0.0.122"
Sencha Command Error when trying to create app using the latest "SenchaCmd-3.0.0.122" and
"sencha-touch-2.1.0-b3"
F:\apache-tomcat-6.0.10\webapps\sencha-touch-2.1.0-b3>sencha app create MyApp ../MyApp
Sencha Cmd v3.0.0.122
[ERROR] UNHANDLED EXCEPTION : No such property : 'create'
-
12 Sep 2012 11:07 PM #7
I have a similar issue while trying to upgrade an app:
Code:Sencha Cmd v3.0.0.122 [INFO ] init-properties: [INFO ] init-antcontrib: [INFO ] init-sencha-command: [INFO ] init: [INFO ] -before-app-upgrade: [INFO ] app-upgrade-impl: [ERROR] UNHANDLED EXCEPTION : Net Yet Implemented
-
12 Sep 2012 11:38 PM #8
-
16 Sep 2012 4:35 PM #9
Sencha CMD ?
Sencha CMD ?
Where can I download the Sencha CMD 3.0 ? It is nowhere. I have spent 60 mins just to try to find it. Please....
-
16 Sep 2012 5:20 PM #10
Found it but very difficult...
Found it but very difficult...
Okay, I finally found the Sencha CMD.
From this post: http://www.sencha.com/forum/showthre...led-on-linux64
I got the linux url : http://dev.sencha.com/deploy/SenchaC...ux-x64.run.zip
But since I needed the OSX version, I guessed the filename, and after few attempts I got it:
http://dev.sencha.com/deploy/SenchaC...22-osx.app.zip
But really, there must be a better way. Just tell me..


Reply With Quote
