Open unional opened 8 years ago
Just go to the app folder and run "sencha app install", it will fix the issue.
I'm also having this issue. I ran "sencha app install" and I got the following output:
[adam@Macintosh app]$ sencha app install Sencha Cmd v6.2.1.29 [INF] Using existing workspace at /Users/adam/projects/electron-demo [WRN] Failed to resolve package ext-electron [INF] Adding application to workspace.json
I then re-ran the setup command "./setup ~/projects/sencha-frameworks" and got the following errors:
Sencha Cmd v6.2.1.29
[INF] Processing Build Descriptor : default
[WRN] Failed to resolve package ext-electron
[WRN] Failed to resolve package ext-electron
[INF] Loading app json manifest...
[ERR] C2000: Rhino Parse Error (missing : after property id => init () {) -- /Users/adam/projects/electron-demo/app/app/view/main/MainController.js:23:14
[ERR] C2000: Rhino Parse Error (syntax error => this.recentFiles = [];) -- /Users/adam/projects/electron-demo/app/app/view/main/MainController.js:24:18
[ERR] C2000: Rhino Parse Error (missing ) after argument list => onFileChange (picker, path) {) -- /Users/adam/projects/electron-demo/app/app/view/main/MainController.js:29:37
[ERR] C2000: Rhino Parse Error (syntax error => getColors(path, (err, colors) => {) -- /Users/adam/projects/electron-demo/app/app/view/main/MainController.js:34:45
[ERR] C2000: Rhino Parse Error (missing ; before statement => if (err) {) -- /Users/adam/projects/electron-demo/app/app/view/main/MainController.js:35:26
[ERR] C2000: Rhino Parse Error (syntax error => else {) -- /Users/adam/projects/electron-demo/app/app/view/main/MainController.js:38:21
[ERR] C2000: Rhino Parse Error (syntax error => vm.set('colors', colors.map(c => {) -- /Users/adam/projects/electron-demo/app/app/view/main/MainController.js:39:24
[ERR] C2000: Rhino Parse Error (syntax error => }));) -- /Users/adam/projects/electron-demo/app/app/view/main/MainController.js:43:21
[ERR] C2000: Rhino Parse Error (missing ; before statement => let i = recentFiles.indexOf(path);) -- /Users/adam/projects/electron-demo/app/app/view/main/MainController.js:45:26
[ERR] C2000: Rhino Parse Error (syntax error => }) -- /Users/adam/projects/electron-demo/app/app/view/main/MainController.js:57:17
[ERR] C2000: Rhino Parse Error (syntax error => });) -- /Users/adam/projects/electron-demo/app/app/view/main/MainController.js:58:14
[ERR] C2000: Rhino Parse Error (syntax error => },) -- /Users/adam/projects/electron-demo/app/app/view/main/MainController.js:61:9
[ERR] C2000: Rhino Parse Error (syntax error => getReopenMenu () {) -- /Users/adam/projects/electron-demo/app/app/view/main/MainController.js:63:24
[ERR] C2000: Rhino Parse Error (invalid return => return this.recentFiles.map(file => {) -- /Users/adam/projects/electron-demo/app/app/view/main/MainController.js:66:19
[ERR] C2000: Rhino Parse Error (syntax error => return this.recentFiles.map(file => {) -- /Users/adam/projects/electron-demo/app/app/view/main/MainController.js:66:48
[ERR] C2000: Rhino Parse Error (missing ; before statement => click () {) -- /Users/adam/projects/electron-demo/app/app/view/main/MainController.js:69:30
[ERR] C2000: Rhino Parse Error (syntax error => vm.set('filename', file);) -- /Users/adam/projects/electron-demo/app/app/view/main/MainController.js:70:28
[ERR] C2000: Rhino Parse Error (syntax error => };) -- /Users/adam/projects/electron-demo/app/app/view/main/MainController.js:72:17
[ERR] C2000: Rhino Parse Error (syntax error => });) -- /Users/adam/projects/electron-demo/app/app/view/main/MainController.js:73:13
[ERR] C2000: Rhino Parse Error (syntax error => },) -- /Users/adam/projects/electron-demo/app/app/view/main/MainController.js:74:9
[ERR] C2000: Rhino Parse Error (syntax error => onRefreshMenu () {) -- /Users/adam/projects/electron-demo/app/app/view/main/MainController.js:76:24
[ERR] C2000: Rhino Parse Error (syntax error => },) -- /Users/adam/projects/electron-demo/app/app/view/main/MainController.js:80:9
[ERR] C2000: Rhino Parse Error (missing ; before statement => onAppReload (item, focusedWindow) {) -- /Users/adam/projects/electron-demo/app/app/view/main/MainController.js:82:43
[ERR] C2000: Rhino Parse Error (missing ; before statement => if (focusedWindow) {) -- /Users/adam/projects/electron-demo/app/app/view/main/MainController.js:83:32
[ERR] C2000: Rhino Parse Error (syntax error => focusedWindow.reload();) -- /Users/adam/projects/electron-demo/app/app/view/main/MainController.js:84:31
[ERR] C2000: Rhino Parse Error (syntax error => }) -- /Users/adam/projects/electron-demo/app/app/view/main/MainController.js:85:13
[ERR] C2000: Rhino Parse Error (syntax error => },) -- /Users/adam/projects/electron-demo/app/app/view/main/MainController.js:86:10
[ERR] C2000: Rhino Parse Error (syntax error => onExit () {) -- /Users/adam/projects/electron-demo/app/app/view/main/MainController.js:88:17
[ERR] C2000: Rhino Parse Error (syntax error => window.close();) -- /Users/adam/projects/electron-demo/app/app/view/main/MainController.js:89:20
[ERR] C2000: Rhino Parse Error (syntax error => },) -- /Users/adam/projects/electron-demo/app/app/view/main/MainController.js:90:9
[ERR] C2000: Rhino Parse Error (missing ; before statement => onButtonToggled (btn, button, pressed) {) -- /Users/adam/projects/electron-demo/app/app/view/main/MainController.js:92:48
[ERR] C2000: Rhino Parse Error (syntax error => },) -- /Users/adam/projects/electron-demo/app/app/view/main/MainController.js:103:9
[ERR] C2000: Rhino Parse Error (syntax error => onToggleMenuItem () {) -- /Users/adam/projects/electron-demo/app/app/view/main/MainController.js:105:27
[ERR] C2000: Rhino Parse Error (syntax error => },) -- /Users/adam/projects/electron-demo/app/app/view/main/MainController.js:116:9
[ERR] C2000: Rhino Parse Error (syntax error => testRemote () {) -- /Users/adam/projects/electron-demo/app/app/view/main/MainController.js:118:21
[ERR] C2000: Rhino Parse Error (syntax error => var v = mainStub.invoke(process.type, () => {) -- /Users/adam/projects/electron-demo/app/app/view/main/MainController.js:123:52
[ERR] C2000: Rhino Parse Error (syntax error => console.log(Callback called in ${process.type}
);) -- /Users/adam/projects/electron-demo/app/app/view/main/MainController.js:124:25
[ERR] C2000: Rhino Parse Error (illegal character => console.log(Callback called in ${process.type}
);) -- /Users/adam/projects/electron-demo/app/app/view/main/MainController.js:124:29
[ERR] C2000: Rhino Parse Error (missing ; before statement => console.log(Callback called in ${process.type}
);) -- /Users/adam/projects/electron-demo/app/app/view/main/MainController.js:124:45
[ERR] C2000: Rhino Parse Error (illegal character => console.log(Callback called in ${process.type}
);) -- /Users/adam/projects/electron-demo/app/app/view/main/MainController.js:124:64
[ERR] C2000: Rhino Parse Error (syntax error => console.log(Callback called in ${process.type}
);) -- /Users/adam/projects/electron-demo/app/app/view/main/MainController.js:124:65
[ERR] C2000: Rhino Parse Error (syntax error => });) -- /Users/adam/projects/electron-demo/app/app/view/main/MainController.js:125:13
[ERR] C2000: Rhino Parse Error (illegal character => console.log(Value from remote call to mainStub.invoke: ${v}
);) -- /Users/adam/projects/electron-demo/app/app/view/main/MainController.js:127:25
[ERR] C2000: Rhino Parse Error (missing ) after argument list => console.log(Value from remote call to mainStub.invoke: ${v}
);) -- /Users/adam/projects/electron-demo/app/app/view/main/MainController.js:127:31
[ERR] C2000: Rhino Parse Error (illegal character => console.log(Value from remote call to mainStub.invoke: ${v}
);) -- /Users/adam/projects/electron-demo/app/app/view/main/MainController.js:127:73
[ERR] C2000: Rhino Parse Error (syntax error => console.log(Value from remote call to mainStub.invoke: ${v}
);) -- /Users/adam/projects/electron-demo/app/app/view/main/MainController.js:127:74
[ERR] C2000: Rhino Parse Error (syntax error => }) -- /Users/adam/projects/electron-demo/app/app/view/main/MainController.js:128:9
[ERR] C2000: Rhino Parse Error (syntax error => });) -- /Users/adam/projects/electron-demo/app/app/view/main/MainController.js:130:1
[ERR] C2000: Rhino Parse Error (Compilation produced 48 syntax errors. => null) -- /Users/adam/projects/electron-demo/app/app/view/main/MainController.js:1
[ERR]
[ERR] BUILD FAILED
[ERR] org.mozilla.javascript.EvaluatorException: Compilation produced 48 syntax errors.
[ERR]
[ERR] Total time: 2 seconds
[ERR] The following error occurred while executing this line:
/Users/adam/projects/electron-demo/app/.sencha/app/build-impl.xml:380: The following error occurred while executing this line:
/Users/adam/projects/electron-demo/app/.sencha/app/init-impl.xml:384: org.mozilla.javascript.EvaluatorException: Compilation produced 48 syntax errors.
I'm running Sencha Cmd v6.2.1.29 under OS X 10.10.5
@aratcliffe try with sencha cmd 6.5.0.25, it supports ES6
Thanks!
@aratcliffe let me know if it didn't work
I'm running this on windows, using ext 6.2.0 and sencha cmd 6.2.0.103
With npm and/or yarn.
The setup script error with ".../build.xml:8: Cannot find .../app/.sencha/app/build-impl.xml imported from .../ap/build.xml"