Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

ndb with ts-node-dev #320

Open
marceloclp opened this issue Sep 3, 2020 · 2 comments
Open

ndb with ts-node-dev #320

marceloclp opened this issue Sep 3, 2020 · 2 comments

Comments

@marceloclp
Copy link

Steps to reproduce

Tell us about your environment:

  • ndb version: ^1.1.5
  • Platform / OS version: Windows 10 Home version 2004
  • Node.js version: 12.16.3

What steps will reproduce the problem?

Please include code that reproduces the issue.

  1. Install ndb@^1.1.5 and ts-node-dev@^1.0.0-pre.62.
  2. Create a script inside your package.json with the following content: ndb tsnd --respawn -- src/main.ts
  3. Run yarn run my-script.

Other relevant information:

  • I am running a server at localhost:8080.
  • I am trying to debug an endpoint at localhost:8080/channels.
  • I am using NestJS.

What is the expected result?
The ndb gui should open, and src/main.ts should be executed.

What happens instead?
The ndb GUI opens, but the code never runs. It just gets stuck with the GUI opened.

Here are a few things that I have tried:

  • Running ndb yarn run other-script, where the script is the exact code above tnsd --respawn -- src/main.ts. In this case, the code is executed, but I can't use the debugger. It will not stop at the specified breakpoints.
  • Running ndb . and then running my scripts from the GUI.
  • Reinstalling node-gyp.
  • Installing ts-node-dev globally.
@darcyparker
Copy link

See #269
downgrade with npm i -g [email protected] may help?
I had a similar issue with debugger; not working inside a process deeper inside npm run test, and the downgrade worked. Maybe it will help you too?

@marceloclp
Copy link
Author

Hey, thanks for the reply.

Unfortunately it didn't help. It's very weird because ndb npm run dev works but ndb <dev script> doesn't.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants