I'm struggling now for many hours with sencha cmd to get a compiled version of my MVC app running.
And I think, I got almost the same problem as described here before:
First:
Sencha Cmd Version: 3.1.2.3342
Browser: Chrome
ExtJS: 4.1.1a
This is what chrome tells me:
This is all the Sencha Cmd Output:
Code:
R:\webapp\DAVCOM_D>sencha compile --debug -classpath=..\..\ext-4.1.1a\src,..\..\
ext-4.1.1a\examples\ux\grid,app page -yui -in app.html -out build/app.html
Sencha Cmd v3.1.2.342
[INF] Compiling page null
[INF] Loading classpath entry R:\ext-4.1.1a\src
[INF] Loading classpath entry R:\ext-4.1.1a\examples\ux\grid
[INF] Loading classpath entry R:\webapp\DAVCOM_D\app
[WRN] C1000: Rhino Parse Warning (Trailing comma is not legal in an ECMA-262 obj
ect initializer => ]) -- R:\ext-4.1.1a\examples\ux\grid\
filter\DateFilter.js:13383
[INF] Loading classpath entry R:\webapp\DAVCOM_D\sencha-compile-temp-dir\e3f8d5c3-1f73-49dc-8e6-7df4f10467df
[INF] Compressing data with YuiJavascriptCompressor
[INF] Concatenating output to file R:\webapp\DAVCOM_D\build\all-classes.js
and this is the app.js main file of the project
PHP Code:
Ext.Loader.setConfig({
enabled: true,
paths: {
'Ext.ux.grid': '../../ext-4.1.1a/examples/ux/grid'
}
});
Ext.application({
requires: [ 'Ext.container.Viewport',
'Ext.layout.container.Table',
'Ext.layout.container.Border',
'Ext.tip.QuickTipManager'],
name: 'DAVCOM_D',
appFolder: 'app',
controllers: [
'Releases'
],
launch: function() {
Ext.tip.QuickTipManager.init();
Ext.create('Ext.container.Viewport', {
layout: {
type: 'table',
...
an this is my app.html (index.html startpage)
HTML Code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" href="../../ext-4.1.1a/resources/css/ext-all-gray.css" />
<link rel="stylesheet" type="text/css" href="../css/releases.css" />
<!-- <x-compile> -->
<!-- <x-bootstrap> -->
<script type="text/javascript" src="../../ext-4.1.1a/ext-dev.js"></script>
<!-- </x-bootstrap> -->
<script type="text/javascript" src="app.js"></script>
<!-- </x-compile> -->
</head>
<body></body>
</html>
Running the plain app in the browser works fine.
What is wrong with compiling?
Appreciating any hints.
BR
Btw: Application.js ?? Is ext-4.1.1a\src\app\Application.js meant here?