I’m trying to build Sencha Touch 2 application for production, but get an error.
When i run testing build – ‘sencha app build testing’ I see Uncaught SyntaxError: Unexpected token ILLEGAL
in app.js (testing build – so it’s not minimized).
And the content at the error line is
п»їExt.define("App.controller.SomeController",
As I see sencha inserts some strange symbols before Ext.define that cannot be interpeted.
They appears before each definition of any of my classes.
I check encoding for files (utf-8) and line-endings (Windows – CR-LF)
My PC running on Win 7 SP1 x86
Please, help to resolve this issue.
For me the folowing lines in app.json fixed production build. However testing build still failed.