javascript - Missing SocketIO reference in Sencha CMD build? -


I am using ExtCs 5.0.1 with Senka CMD to produce the production version:

  ck app build-c output  

i socket IO libraries are serving directly with my NodesJSHTTP server and they have EXGES app Referencing Jason File:

  "js": [{"path": "/ socket.io/socket.io.js"}, ...]  

Then in my code, I'm calling the global io ():

  Ext.define ('MyController', {extends: 'Ext.app.ViewController ', MyFunction: function () {var socket = io (); / / do something with the software}};  

While looking at my project in the browser, it all works well My Cena CMD build process fails with an error:

  2014-10-17 17: 07: 44.457 Phitmaj [12 9 31: 7] Core Execution Note: To debug, set a breakpoint on CTFontLogSuboptimalRequest. Registering a Ready Listener ... Loading Widget Definition ... Widgets Presentation ... = = Uncontrolled Error == Reference Error: 'The variable could not be found: io  

I am convinced that it is a matter of simple disappearance, I somewhere I define which cenca hopes in the world Should

advance Many thanks!

I'm sure it is foolish to remove this question, but as I thought That I was leaving it as a courtesy for those suffering the same mental impairments.

App. The Jason file is a very good document, and if you read it, you will find that you have file references to the app. To be relevant to the JS file (I had one) referring to the current given from the node and b) when I converted it to the actual file I was using the full path)

so socket.io. After working on the content of js, after copying the contents of the resources / JS / Socket.OJS (relative to the AP JSO file):

  "JS": [ "Path": "Resources / JS / Socket.OJS"}  

Comments

Popular posts from this blog

winforms - C# Form - Property Change -

c# - NewtonSoft JArray - how to select multiple elements with LINQ -

javascript - amcharts makechart not working -