Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Electron dev mode #2710

Closed
kefniark opened this issue Oct 29, 2018 · 2 comments
Closed

Issue with Electron dev mode #2710

kefniark opened this issue Oct 29, 2018 · 2 comments

Comments

@kefniark
Copy link

Software version

Quasar: v0.17.17
OS: Windows 10
Node: v11.0.0
NPM: 6.4.1

What did you get as the error?

>> quasar dev -m electron -t mat

 Dev mode.......... electron
 Quasar theme...... mat
 Quasar CLI........ v0.17.20
 Quasar Framework.. v0.17.17
 Debugging......... enabled

 app:quasar-conf Reading quasar.conf.js +0ms
 app:dev Checking listening address availability (0.0.0.0:8080)... +2ms
 app:webpack Extending Renderer process Webpack config +396ms
 app:webpack Extending Main process Webpack config +2ms
 app:generator Generating Webpack entry point +7ms
 app:dev-server Booting up... +4ms

  Renderer process █████████████████████████ [100%] in ~6s
  Main process                               [0%]

 DONE  Compiled successfully in 5866ms                                                                                                 11:24:09 AM
 app:electron Building main Electron process... +6s

  Renderer process █████████████████████████ [100%] in ~6s
  Main process     █████████████████████████ [100%] in ~927ms

 app:electron Webpack built Electron main process +928ms

Hash: e74c460433e8db74710c
Version: webpack 4.19.1
Time: 928ms
Built at: 10/29/2018 11:24:10 AM
           Asset     Size         Chunks             Chunk Names
electron-main.js  195 KiB  electron-main  [emitted]  electron-main
Entrypoint electron-main = electron-main.js

WARNING in ./node_modules/electron-debug/index.js 81:45-58
Critical dependency: the request of a dependency is an expression
 @ ./src-electron/main-process/electron-main.dev.js
 @ multi ./src-electron/main-process/electron-main.dev.js

WARNING in ./node_modules/electron-debug/index.js 84:85-106
Critical dependency: the request of a dependency is an expression
 @ ./src-electron/main-process/electron-main.dev.js
 @ multi ./src-electron/main-process/electron-main.dev.js

 app:electron Booting up Electron process... +2ms
 app:spawn Running ".\node_modules\electron\dist\electron.exe --inspect=5858 .\.quasar\electron\electron-main.js" +1ms


Debugger listening on ws://127.0.0.1:5858/9e860c6b-cd54-4757-801f-2a587aafbcba
For help see https://nodejs.org/en/docs/inspector
[8676:1029/112411.282:ERROR:CONSOLE(7574)] "Extension server error: Operation failed: : has no execution context", source: chrome-devtools://devtools/bundled/inspector.js (7574)

And I get nothing more:

  • the console is stuck there
  • no electron process running

What were you expecting?

I was expecting electron to start with the devTools attached.

And it seems to be the only command causing me issue:

  • Electron build quasar build -m electron -t mat works fine
  • SPA dev mode quasar dev works fine too

What steps did you take, to get the error?

  • created a new project quasar init .
  • added electron quasar mode -a electron
  • tried to start the dev mode quasar dev -m electron -t mat
@rstoenescu
Copy link
Member

Hi,

Can you please redirect this to the CLI repo?

Also, do a quasar info inside your project folder and add that to the description.
Seems like it's an electron + npm issue. Referencing same issue: SimulatedGREG/electron-vue#389

Thank you.

@kefniark
Copy link
Author

if someone else has this issue.
seems to be an issue with node, I reverted node to the last LTS 11.0.0 -> 8.12 and it works as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants