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
Cannot write file because it would overwrite input file in 25.3.0 when allowJs enabled #1471
Comments
This seems new to me, does it happen to 25.2.1 ? |
No. |
Thanks, seem like it has been there silently for a long time. |
This error came from typescript itself. Perhaps you can take a look at this microsoft/TypeScript#14538 FYI: The error happens when the JavaScript file was considered part of the project, and your compilation will override these files. |
The most upvoted answers suggest to set |
Updated 1: I think maybe I found a fix for this. Stay tune. Since this is related to ts configuration, not |
|
Ok I found another way for this. |
Will this directory really be created? |
nope, I just tested that change locally, I can see the test passed but that directory isn't created. Please test against branch in PR #1472 :) |
@ahnpnl awesome. Thanks! |
"noEmit":true |
Issue :
If
allowJs
setting is enabled, theCannot write file ... because it would overwrite input file
is thrown.Expected behavior :
No error.
Debug log:
log file content
Minimal repo
The text was updated successfully, but these errors were encountered: