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.

Hard resets not working with electron-forge

See original GitHub issue

I am trying to get hardresets to work with electron-forge, but to start electron-forge you need to execute electron-forge start. Since i can add only path to executable I am unable to use hard resets

I would need something like this:

require('electron-reload')(path.join(__dirname, '../app'), {
	electron: path.join(__dirname, '../node_modules', '.bin', 'electron-forge start')
})

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
ToP29commented, Jul 6, 2018

I would like to, but I don’n know how 😕 I am kinda new at this stuff

0reactions
dreams-and-thoughtscommented, Jul 26, 2022

This is probably wrong, but I think I had this same problem:

The electron forge app would ‘crash’ when editing main.js and not recover…

require('electron-reload')(__dirname, {
    electron: path.join(__dirname, 'node_modules', '.bin', 'electron-forge'),
    electronArgv: ['start'],
    hardResetMethod: 'exit',
    awaitWriteFinish: true
})

It solved the problem for me, not sure if relevant to this issue though.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hot reloading / React Refresh no longer works with default ...
I recently created a new electron-forge project, using version 6.0.0-beta.61 . Using the same approach, hot reloading doesn't work.
Read more >
1 - Stack Overflow
Problem while packaging application with electron-forge "Can't resolve './→' " · javascript · node.js · webpack · electron · electron-forge.
Read more >
Notarizing app with electron-forge… | Apple Developer Forums
Honestly, it sounds like you need to resolve this issue first. Your Mac should never require a hard reboot [1]. If it's happening...
Read more >
Patches in Electron
Every patch in Electron is a maintenance burden. When upstream code changes, patches can break—sometimes without even a patch conflict or a compilation...
Read more >
Configuration - Electron Forge
If you do not have config.forge set in your package.json file, Forge will attempt to find a ... Only showing the relevant config...
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