-
-
Notifications
You must be signed in to change notification settings - Fork 27k
[cra-template] noEmit
always set to true
in tsconfig.json regardless of template
#11711
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
Comments
If I submit a PR making tsconfig's |
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs. |
This could be considered a duplicate of #10796, but definitely not stale. |
Hey @halfnibble, have you solved this issue? I am in a similar situation now, I have |
I have not resolved the issue. |
Looks like it. Anyway, I have managed to find a workaround for this. My approach includes having custom Basically what I did was altering the As for your case, I find the value of Hope this helps! |
I have created a PR to try and fix the noEmit issue here: /pull/12868 |
It appears that CRA will ignore a cra-template setting for the
noEmit
value in atsconfig.json
template file.It does not matter if I leave that field out of the template tsconfig.json file. Or if I explicitly set it to
false
. The generated template tsconfig file will havenoEmit
set totrue
.Here is my template to repro:
https://github.com/halfnibble/cra-template-heft/
Notice how tsconfig has
noEmit: false
https://github.com/halfnibble/cra-template-heft/blob/main/template/tsconfig.json#L21
But that setting will not propagate to projects created with this template.
The text was updated successfully, but these errors were encountered: