adopted-ember-addons / ember-electron

:zap: Build, test, compile and package desktop apps with Ember and Electron
https://ember-electron.js.org/
Other
805 stars 109 forks source link

[Issue] Build failed on customized server/index.js #198

Closed ldong closed 7 years ago

ldong commented 7 years ago

Hi,

We have a customized server/index.js which invokes an express server and listen to that. Run ember electron I got the following error.

No Desktop App was spawned, and I could open a localhost on port 9999.

Please help.

WARNING: WARNING: Node v6.10.0 has currently not been tested against Ember CLI and may result in unexpected behaviour.
version: 2.3.0
Building...

electron.js: line 3, col 56, Missing semicolon.
electron.js: line 4, col 36, Missing semicolon.

2 errors

===== 1 JSHint Error

Build successful - 10035ms.

Slowest Trees                                 | Total
----------------------------------------------+---------------------
LessCompiler                                  | 2291ms
StubGenerator                                 | 852ms
ember-browserify                              | 630ms
broccoli-persistent-filter:Babel > [Babel:... | 511ms

Slowest Trees (cumulative)                    | Total (avg)
----------------------------------------------+---------------------
LessCompiler (2)                              | 2339ms (1169 ms)
StubGenerator (2)                             | 1235ms (617 ms)
broccoli-persistent-filter:Babel (4)          | 855ms (213 ms)
broccoli-persistent-filter:Babel > [Ba... (2) | 789ms (394 ms)
ember-browserify (2)                          | 642ms (321 ms)

--------------------------------------------------------------------
Ember Inspector running on http://localhost:30820
Open the inspector URL in a browser to debug the app!
The inspector is also available as an addon inside your
app's developer tools.
--------------------------------------------------------------------
Starting Electron...
--------------------------------------------------------------------
Express Server - listening on port: 9999
/Library/Caches/com.apple.xbs/Sources/AppleGVA/AppleGVA-10.1.5/Sources/Slices/Driver/AVD_loader.cpp: failed to get a service for display 4
pichfl commented 7 years ago

This looks like an interesting problem. Here are a few things we should try: