vkarpov15 / awaitjs-express

Write Express middleware and route handlers using async/await
Apache License 2.0
124 stars 13 forks source link

Causes issues with nodemon #14

Open craigharman opened 4 years ago

craigharman commented 4 years ago

I use nodemon to monitor for changes to my files as follows:

./node_modules/.bin/nodemon -r esm ./src/index.js

However after using this plugin in my code it appears the app doesn't close down properly and I get an EADDRINUSE error. Saving the code again and nodemon restarts and all works fine.

Every second save it works!

vkarpov15 commented 4 years ago

Can you show how you’re using this module and what your src/index.js file looks like?