-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doesn't work with nodemon #50
Comments
+1 |
I've noticed an issue with the package not working in nodemon as well. However, I get an error regarding index.js in the prompt-sync package, which causes the app to crash and then nodemon monitors like normal. I don't get the hang where input is prompted, mine crashes before the prompt is displayed. UsageI'm requiring the package in my input.js file and then using prompt inside of an arrow function, like this:
I then call getInput like this:
ErrorWhen running with nodemon, I get this error and stack trace:
TestsIf I comment out When running the app using node, the app works fine and no errors are presented. I receive the prompt in the CL as expected and then doSomething. Version
|
@wyckster any update ? |
this issue is still happening |
Here is a work around that works.
|
Steps to reproduce
app.js
To run:
This app doesn't exit.
Expected output:
Actual output:
But running directly in node works correctly:
nodemon --version
2.0.7node --version
v14.15.4The text was updated successfully, but these errors were encountered: