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.

Typing `rs` in the terminal does not restart the dev environment app

See original GitHub issue

Preflight Checklist

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project follows, as appropriate.
  • I have searched the issue tracker for a bug that matches the one I want to file, without success.

Issue Details

  • Electron Forge Version: 6.0.0-beta.57
  • Electron Version: v11.3.0
  • Operating System: Macos big sur latest

Expected Behavior

I expect to be able to run electron forge and type in the terminal rs and have the entire app restart.

Actual Behavior

The app does not restart when I type in rs

Additional Information

I think this could be related to the recent changes in the webpack plugin upgrade to webpack version 5

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:14
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

9reactions
rumtraubenusscommented, Oct 5, 2021

rs + enter in terminal does also not work in 6.0.0-beta.61.

@ltabis setting the DEBUG env as you mentioned re-enables the rs command for me. 👍💯 For a quick test without altering package.json prefixing the npm start command like this worked for me (on mac os): DEBUG='electron-forge:*' npm start

4reactions
ltabiscommented, Jul 7, 2021

Hey @b-zurg, I’ve encountered this issue in a project, and couldn’t find any solution to fix this problem. I think it’s definitely a webpack 5 bug since I’ve just updated to that version and that’s when the problem occured.

I’ve nonetheless managed to re-enable the rs command by passing the env variable DEBUG='electron-forge:*' to the start script (I was trying to see what electron-forge was doing under the hood to find the problem) in my package.json like so:

 "scripts": {
    "start": "cross-env DEBUG='electron-forge:*' NODE_ENV=development electron-forge start --inspect-electron",
  },

(cross-env is used to enable windows devs to use the same config as linux users)

I know it’s not a good solution and that it might not work for you, but please give it a try while this is being worked on. (btw I have no idea why enabling logs would re-enable the rs command 😕)

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Restart Your Node.js Apps Automatically with nodemon
You can restart the process at any time by typing rs and hitting ENTER . Once you make the changes to package.
Read more >
Nodemon is not able to gracefully restart applications in ...
I'm seeing the same behavior regardless during restarts for file changes (or typing 'rs') - the application is IMMEDIATELY restarted and my ...
Read more >
How to watch and reload ts-node when TypeScript files change
So all ts file will re-compile to js file and then restart the server. To run while in dev environment, npm run dev....
Read more >
Automatically restart Node.js apps with Nodemon
The essential tutorial for Nodemon, a utility for Node.js applications that monitors for changes and automatically restarts the server.
Read more >
5 Linux / Unix Commands For Connecting To The Serial ...
Explains and list top five utilities that can be used for serial communication under Linux / Unix / *BSD and Mac OS X....
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