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

Appears to not work if you have allowJs on in tsconfig json #14

Open
JeronimoFictiv opened this issue Nov 27, 2021 · 1 comment
Open
Labels
awaiting reply Waiting for reply of OP

Comments

@JeronimoFictiv
Copy link

Running this on a project that has allowJs on in the tsconfig json and has js files appears to trigger this error. I turned off allowJs and it seems to run.

yarn run v1.10.1
$ tsc-strict
⠦ Looking for strict files...(node:25319) UnhandledPromiseRejectionWarning: Error: Command failed with exit code 1: tsc --listFilesOnly
error TS5055: Cannot write file '/Users/.../redacted.js' because it would overwrite input file.
...
 at makeError (/Users/.../node_modules/typescript-strict-plugin/node_modules/execa/lib/error.js:59:11)
    at handlePromise (/Users/.../node_modules/typescript-strict-plugin/node_modules/execa/index.js:114:26)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async Object.listFilesOnly (/Users/.../node_modules/typescript-strict-plugin/dist/cli/lib/typescript.js:9:20)
    at async getFilesCheckedByTs (/Users/.../node_modules/typescript-strict-plugin/dist/cli/lib/strictFiles.js:28:30)
    at async findStrictFiles (/Users/.../node_modules/typescript-strict-plugin/dist/cli/lib/strictFiles.js:34:30)
    at async waitWithSpinner (/Users/.../node_modules/typescript-strict-plugin/dist/cli/find-strict-errors.js:36:28)
    at async Object.findStrictErrors (/Users/.../node_modules/typescript-strict-plugin/dist/cli/find-strict-errors.js:13:29)
    at async run (/Users/.../node_modules/typescript-strict-plugin/dist/cli/cli.js:10:20)
(node:25319) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:25319) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
⠴ Looking for strict files...
@kamkry
Copy link
Collaborator

kamkry commented Dec 17, 2021

Hi, we couldn't reproduce this error, could you share your tsconfig.json and version of typescript?

@KostkaBrukowa KostkaBrukowa added the awaiting reply Waiting for reply of OP label Feb 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting reply Waiting for reply of OP
Projects
None yet
Development

No branches or pull requests

3 participants