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

bad option: --cwd? #341

Open
r3x5ur opened this issue Nov 6, 2023 · 0 comments
Open

bad option: --cwd? #341

r3x5ur opened this issue Nov 6, 2023 · 0 comments

Comments

@r3x5ur
Copy link

r3x5ur commented Nov 6, 2023

Issue description

Switching ts-node to ts-node-dev does not work properly
error: bad option: --cwd

Context

OS version (is it docker or host?), ts-node-dev version
win10 node14 ts-node-dev@2.0.0

Did you try to run with ts-node?

Did you try to run with --files option enabled?

Did you try to run with --debug option enabled?

Do you have a repro example (git repo) with simple steps to reproduce your problem?

use ts-node

ts-node -r tsconfig-paths/register --transpile-only -P packages/server/tsconfig.json --cwd packages/server packages/server/src/main.ts

working fine

use ts-node-dev

 ts-node-dev -r tsconfig-paths/register --transpile-only -P packages/server/tsconfig.json --cwd packages/server packages/server/src/main.ts

error:
D:\Program Files\nodejs\node.exe: bad option: --cwd

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

No branches or pull requests

1 participant