Sencha Un-Minified app.js for simulator build

258 Views Asked by At

sencha app build -run native packages the files for native devices and can be tested in simulator. However I often see error in adb logcat complaining about undefined type in app.js. Exact error:

D/CordovaLog(  890): file:///android_asset/www/app.js: Line 1 : Uncaught TypeError: Cannot read property 'type' of undefined
I/chromium(  890): [INFO:CONSOLE(1)] "Uncaught TypeError: Cannot read property 'type' of undefined", source: file:///android_asset/www/app.js (1)

Runtime complains about a Java script error but because the entire file is concatenated (minified) into 1 line, its difficult to identify the exact error.

How can we get expanded version of app.js when we build for simulators in sencha touch.

Using sencha app build testing, I can use chrome emulator and validate. However few times, chrome emulator works fine but the actual device simulators fail and make it difficult to debug. Is there an option to get expanded version of app.js packaged for native testing?

1

There are 1 best solutions below

2
On

You can use phonegap/cordova to pack your app manually using the testing build of your sencha app.