Skip to content
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

nodemon not working with ts-node require hook anymore #1564

Closed
teebot opened this issue May 6, 2019 · 6 comments
Closed

nodemon not working with ts-node require hook anymore #1564

teebot opened this issue May 6, 2019 · 6 comments
Labels
stale no activity for 2 weeks

Comments

@teebot
Copy link

teebot commented May 6, 2019

Creating this issue as requested in a response to : #1552 (comment)

  • nodemon -v: 1.19.0
  • node -v: 12.0
  • Operating system/terminal environment: macos
  • Using Docker? What image: no
  • Command you ran: see below

Expected behaviour

nodemon -r ts-node/register app.ts works just like node -r ts-node/register app.ts

Actual behaviour

Unable to compile to Typescript

Steps to reproduce


If applicable, please append the --dump flag on your command and include the output here ensuring to remove any sensitive/personal details or tokens.

@leonardodino
Copy link
Contributor

If you don't use any custom flag for node, you can replace
nodemon -r ts-node/register app.ts with: nodemon app.ts

@teebot
Copy link
Author

teebot commented May 6, 2019

Yes I know. I was just pointing out that it wasn't consistent with node. It was kinda hard to catch

@remy
Copy link
Owner

remy commented May 6, 2019

Any suggestions on work around fixes or should the feature be reverted? (For context: I don't use typescript in any of my own workflows)

@teebot
Copy link
Author

teebot commented May 6, 2019

I guess just ignoring the ts-node require hook would just work.
Or allowing both mechanisms not to conflict with each other.

@remy
Copy link
Owner

remy commented May 8, 2019

Can you explain? I have absolutely zero knowledge of how typescript works. I know it exists, but I've yet to write using TS, so I don't know what the require hook is, or looks like, or what that means for nodemon.

@stale
Copy link

stale bot commented May 22, 2019

This issue has been automatically marked as idle and stale because it hasn't had any recent activity. It will be automtically closed if no further activity occurs. If you think this is wrong, or the problem still persists, just pop a reply in the comments and @remy will (try!) to follow up.
Thank you for contributing <3

@stale stale bot added the stale no activity for 2 weeks label May 22, 2019
@stale stale bot closed this as completed May 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale no activity for 2 weeks
Projects
None yet
Development

No branches or pull requests

3 participants