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

ts-node-dev ignores tsconfig.json not in the project root #309

Open
stepancheg opened this issue May 3, 2022 · 1 comment
Open

ts-node-dev ignores tsconfig.json not in the project root #309

stepancheg opened this issue May 3, 2022 · 1 comment

Comments

@stepancheg
Copy link

I have src/server/tsconfig.json and src/server/server.ts.

Now I intentionally break src/server/tsconfig.json (put garbage into it).

ts-node parses the file:

$ yarn ts-node --transpile-only -- src/server/server.ts
    return new TSError(diagnosticText, diagnosticCodes);
           ^
TSError: ⨯ Unable to compile TypeScript:
src/server/tsconfig.json:15:25 - error TS1136: Property assignment expected.

15         "allowJs": true,,,,,

ts-node-dev ignores the file:

$ yarn ts-node-dev --transpile-only -- src/server/server.ts
(ts compilation error because I need options from tsconfig.json)
@rahuljain2
Copy link

@stepancheg did you get the solution for this ?
I am facing the same issue with Node 18. Currently my repo is in Node 14 but after migration to Node 18 ts-node is not able to compile .ts files.

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

2 participants