-
23 Nov 2011 8:08 AM #21
Hello, did you find an answer to that issue? I have the same problem.
Thanks
-
23 Nov 2011 9:05 PM #22
+1
I'm having the same issue.
-
24 Nov 2011 2:36 AM #23
I had the same issue. Turns out I had a typo in my path.
What I did:
open a terminal
cd to the project folder (/Applications/XAMPP/xamppfiles/htdocs/testapp in my case)
create jsb from url
sencha build.
The below command is create usb + sencha build if you are in your projects directory.
Code:sencha create jsb -a http://localhost/mycon/index-d.html -p /Applications/XAMPP/xamppfiles/htdocs/testapp/testapp.jsb3 -v && sencha build -p testapp.jsb3 -d .
-
24 Nov 2011 3:13 AM #24
probelm of JSB3
probelm of JSB3
The problem is that the JSB3 file is not well generated, I have
with this page:Code:{ "projectName": "Project Name", "licenseText": "Copyright(c) 2011 Company Name", "builds": [ { "name": "All Classes", "target": "all-classes.js", "options": { "debug": true }, "files": [] }, { "name": "Application - Production", "target": "app-all.js", "compress": true, "files": [ { "path": "", "name": "all-classes.js" }, { "path": "", "name": "app.js" } ] } ], "resources": [] }
And my page works fine.Code:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>NexSun</title> <link rel="stylesheet" type="text/css" href="lib/extJs/resources/css/ext-all.css"/> <script type="text/javascript" src="lib/extJs/ext-all.js"></script> <script type="text/javascript" src="lib/extJs/locale/ext-lang-fr.js"></script> <script type="text/javascript"> Ext.onReady(function() { viewport = Ext.create('Ext.container.Viewport', { id: 'viewport',...
Do I have to include the needed file and/or classes differently?
Can you gave me a sample page code and the result in jsb3 file please?
Thanks
-
24 Nov 2011 5:29 AM #25
You should not do javascript in your HTML page. The build script gets dependencies from your app.js file.
I suggest you read this guide: http://docs.sencha.com/touch/2-0/#!/...etting_started
And this guide for MVC http://francisshanahan.com/index.php...nutes-or-less/
I hoped this helped
-
26 Nov 2011 7:17 AM #26
Ok thanks for the advise. I followed the links you gave me, but I switched to links to Extjs (which is the same architecture explanation).You should not do javascript in your HTML page. The build script gets dependencies from your app.js file.
But a big issue occured: we have in our company a coding convention(about folders and files) which is really different than the prerequire given in those links.
So If I right understood, if I don't code as Sencha ask, I cannot rebuild the library?
I thought it was a tool that search all JavaScript files or files with JavaScript, in a main folder, then recover all ExtJs classes used...?Last edited by phoenix06; 26 Nov 2011 at 7:22 AM. Reason: forgot something
-
29 Jan 2013 11:09 AM #27
create jsb command
create jsb command
any update on this?
Did anyone get the create jsb command to work yet?
-
29 Apr 2013 4:49 AM #28
win7 deployment, sencha create - Unknown command
win7 deployment, sencha create - Unknown command
I'm pretty sure, I've followed the document
while deployment sencha on my pc http://docs.sencha.com/extjs/4.2.0/#...etting_started
The issue I faced is Unknown command 'create' from command line, below is my result
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\username>cd C:\pathtoproject\helloext
C:\pathtoproject\helloext>sencha create jsb -a index.html -p app.jsb3
Sencha Cmd v3.1.1.274
[ERR] Unknown command: "create"
C:\pathtoproject\helloext>
Please advise if something missed, cause seems it stuck futher development steps
according to same multiple claims above in the forum
Thank you
Similar Threads
-
Sencha Command for Windows?
By sdruckerfig in forum Sencha Touch 1.x: DiscussionReplies: 15Last Post: 22 Jan 2012, 3:54 PM -
ExtJS 4 / MVC / Sencha Command?
By ssamayoa in forum Ext: DiscussionReplies: 31Last Post: 6 Jul 2011, 12:22 PM -
Sencha Command!?
By AndreaCammarata in forum Sencha Touch 1.x: DiscussionReplies: 2Last Post: 1 Apr 2011, 10:36 PM -
sencha command generate
By jskufca in forum Sencha Touch 1.x: DiscussionReplies: 1Last Post: 25 Mar 2011, 1:57 PM


Reply With Quote