It seems to work. Have you tried inspecting the output?
in the browser console gives these errors:
content.js: 4 Uncaught TypeError: Can not set property 'cssText' of undefined
at content.js: 4
at content.js: 4
at content.js: 2
at content.js: 2
(anonymous) @ content.js: 4
(anonymous) @ content.js: 4
(anonymous) @ content.js: 2
(anonymous) @ content.js: 2
ext-all.js: 22 GET http: //.../api/session? _dc = 1524720097746 404 (Not Found).
I have erased possible caches, used other browsers.
In log of traccar: traccar-log-serve does not appear at all
By output I meant the JavaScript file.
I'm sorry but I do not know very well what you want to tell me, they are my first steps with Sencha and ExtJs, I do not know how to see the output of JavaScript.
I have placed -info in the minify.sh file and it shows:
Sencha Cmd v6.5.3.6
[INF] Loading compiler context
[INF] Loading classpath entry /opt/traccar/web/app.js
[INF] Loading classpath entry / opt / traccar / web / app
[INF] Loading classpath entry /root/ext-6.2.0/packages/core/src
[INF] Loading classpath entry /root/ext-6.2.0/packages/core/overrides
[INF] Loading classpath entry /root/ext-6.2.0/classic/classic/src
[INF] Loading classpath entry /root/ext-6.2.0/classic/classic/overrides
[INF] concatenating files ...
[INF] Processing data with ClosureCompressor
[INF] JavaScript input level is NEXT and output level is ES5
[INF] Writing concatenated output to file /opt/traccar/web/app.min.js
But I think that this is not what you have indicated to me either.
How do I see the exit that you are indicating to me?
This is your output file:
/opt/traccar/web/app.min.js
I have directly executed /opt/traccar/web/app.min.js and I'm denied permission.
I have changed the permissions with 764 and I have run again and its response:
line 1: syntax error near unexpected token `'Traccar.Style', {singleton:! 0, refreshPeriod: 6E4, reconnectTimeout: 6E4, normalPadding: 10, windowWidth: 800, windowHeight: 600, formFieldWidth: 275, dateTimeFormat24: 'Ymd H : i: s', dateTimeFormat12: 'Ymd g: i: s a', timeFormat24: 'H: i', timeFormat12: 'g: i a', dateFormat: 'Ym-d', weekStartDay: 1, deviceWidth: 400 , toastWidth: 300, reportHeight: 250, columnWidthNormal: 100, mapDefaultLat: 1.283333, mapDefaultLon: 103.833333, mapDefaultZoom: 4, mapRouteColor: '# F06292 # BA68C8 # 4DD0E1 # 4DB6AC # FF8A65 # A1887F'.split'
/opt/traccar/web/app.min.js: line 1: `Ext.define ('Traccar.Style', {singleton:! 0, refreshPeriod: 6E4, reconnectTimeout: 6E4, normalPadding: 10, windowWidth: 800, windowHeight : 600, formFieldWidth: 275, dateTimeFormat24: 'Ymd H: i: s', dateTimeFormat12:' Ymd g: i: s a ', timeFormat24:' H: i ', timeFormat12:' g: i a ', dateFormat:' Ym-d ', weekStartDay: 1, deviceWidth: 400, toastWidth: 300, reportHeight: 250, columnWidthNormal: 100, mapDefaultLat: 1.283333, mapDefaultLon: 103.833333, mapDefaultZoom: 4, mapRouteColor:' # F06292 # BA68C8 # 4DD0E1 # 4DB6AC # FF8A65 # A1887F'.split (''), mapRouteWidth: 5, '
I have deleted app.min.js so that the compiler creates it again but I continue with the same error. The truth is that I do not know what to do I'm blocked
It the app working or not? It sounds like you still haven't checked the output.
If I use debug.htl it works with the changes, if I do not use debug.html it works but without the changes, it is as if it does not work in compiler, I am a bit lost without knowing what to do.
I created an html by loading the app.min.js and the answer is app.min.js: 1 Uncaught ReferenceError: Ext is not defined
at app.min.js: 1
I'm compiling with minify.sh does not present an error but the application does not change.