question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

electron main process can not start again.

See original GitHub issue

Describe the bug Previously the electron mode works fine, but yesterday when I kill the main process from window’s task manager, it just cann’t start anymore, and aways stoping at here:

• Compiling: ├── Renderer process ████████████████████ 100% done in 3695 ms └── Main process █ 0%

when I modify code of renderer process, it recompiles renderer process and stop at there again. when I modify code of main process or quasar.conf.js , nothing happens, it don’t recompile the main process as expected.

solutions I have tried:

  1. I shut down my computer and restart it after a while, then I start up vscode and quasar dev -m electron, nothing changed.
  2. I upgrade my Electron dependency from 10.0.1 to 11.0.3, nothing changed.
  3. I delete node_modules and execute yarn install, quasar dev -m electron, nothing changed.
  4. I removed .quasar folder and run quasar dev -m electron, nothing changed.
  5. I git clone the code into another directory and yarn install, quasar dev -m electron, nothing changed.

I have struggled on this issue for more then ten hours and still have no progress, I don’t know where is the problem. Can anybody help me, please.

Platform (please complete the following information): OS: Win10 Node: 12.16.1 NPM: 6.13.4 Yarn: 1.22.4 Electron: 10, 11 vscode: 1.51.1 x64

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
hawkeye64commented, Dec 5, 2020

@faxinwang Having Github highlight code made finding the issue pretty easy (when the highlighting seemed to get broken).

It’s this line of code:

:note-node="tabItems[curIdx].elnode?.data"

You are using null conditional operator (?.), but that’s not supported yet in the upstream processors we are using. Adjust your code accordingly and probably best to stick with ES2016 for now.

Closing as this is a non-issue until upstream processors, that we consume, offer this functionality.

1reaction
faxinwangcommented, Dec 6, 2020

@hawkeye64 Thank you again, it works now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

node.js - ElectronJs: HellowWorld application is not starting
I have started with electron js hello world application first application with electron. I am doing exactly what is instructed.
Read more >
ipcRenderer - Electron
The ipcRenderer module is an EventEmitter. It provides a few methods so you can send synchronous and asynchronous messages from the render process...
Read more >
VS Code Sandboxing
Enabling the sandbox in Electron renderer processes is a critical requirement for secure and reliable Electron applications such as Visual ...
Read more >
Electron start error - Theia Community
The rebuild is broken in general if you switch branches, I hit this problem all the time. Run yarn rebuild:browser && yarn rebuild:electron...
Read more >
electron-store - npm
The store is not a singleton, so you will need to either initialize the store in a file that is imported in both...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found