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.

How to use nodemon with a custom Express server?

See original GitHub issue

How to use nodemon with a custom Express server?

I looked at examples/custom-server-express and added:

"scripts": {
	"dev": "nodemon server.js",
},

…but it generates an infinite loop when I run it. Any tips?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
sergiodxacommented, Sep 25, 2017

Is next({ dev }) no next({ isDevelopment }). Also you’re not running app.prepare() which is used to build the files.

1reaction
timneutkenscommented, Aug 7, 2017

Taken from one of the OSS Next.js projects I knew uses nodemon: https://github.com/relatenow/relate/blob/master/package.json#L12 it seems like you have to provide specifically that only the server has to be watched 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Restart Your Node.js Apps Automatically with nodemon
You can use nodemon to start a Node script. For example, if you have an Express server setup in a server.js file, you...
Read more >
How to use nodemon with express js while npm start?
Install nodemon as globally first, using these commands ... Now go to your express.js project directory and in that open the package.json ...
Read more >
How To Setup An Express JS Server With Nodemon and Babel
First thing is we are going to create a folder called express_server and initialize npm using the command following codes. mkdir express_server cd ......
Read more >
Using Nodemon with Express - Node.js MVC Tutorial - YouTube
Welcome to the second episode of the " Node. js MVC Tutorial ".In this video we will learn about using nodemon with express...
Read more >
Create new Node.js application with Express, TypeScript ...
Nodemon is a tool which is widely used and which tracks changes and automatically restarts the application. If we do not use Nodemon...
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