We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In package.json i have this "dev": "nodemon --inspect". and in nodemon.json
"dev": "nodemon --inspect"
{ "watch": ["src"], "ext": ".ts,.js", "ignore": [], "exec": "ts-node ./bin/www" }
with this configuration my server starts without debug mode.
The text was updated successfully, but these errors were encountered:
I may have had the same problem. Ts-node has a particular syntax for passing the --inspect argument (link)
Try to:
--inspect
ts-node ./bin/www
node -r ts-node/register --inspect ./bin/www
This should fix the problem.
After that, you may also consider moving ./bin/www in the package.json script, ending up with the following:
./bin/www
{ "watch": ["src"], "ext": ".ts,.js", "ignore": [], "exec": "node -r ts-node/register --inspect" }
... "scripts" : { "dev": "nodemon ./bin/www" } ...
Sorry, something went wrong.
replace ts-node ./bin/www with node -r ts-node/register --inspect ./bin/www
☝️ this.
Thank you @civts 👍
I didn't have a separate nodemon.json folder, so I just appended -r ts-node/register --inspect to the end of my nodemon script in package.json, e.g.
-r ts-node/register --inspect
"dev": "nodemon --watch src src/index.ts -r ts-node/register --inspect",
No branches or pull requests
In package.json i have this
"dev": "nodemon --inspect". and in nodemon.jsonwith this configuration my server starts without debug mode.
The text was updated successfully, but these errors were encountered: