-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Error Overlay appears on TS compilation errors when TSC_COMPILE_ON_ERROR=true #11419
Labels
Comments
@iansu @ianschmitz Has anyone had a chance to look at this issue yet? |
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 was referenced Nov 24, 2023
This was referenced Jan 26, 2024
This was referenced Feb 11, 2024
This was referenced May 17, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
The error overlay appears when TS compiles with errors when you force compilation on errors
TSC_COMPILE_ON_ERROR=true
.The error overlay is also NOT dismissible either with the
esc
key or by clicking the close button that does not appear as it does for warnings. This is unexpected.I can confirm that the compilation succeeds, albeit with error messages. I can also confirm that when I manually delete the iframe from the DOM or hide it with CSS that my app works 💯 . The only problem is that the error overlay blocks my page.
Expected behavior:
TSC_COMPILE_ON_ERROR=true
either disables the error overlay entirely OR it allows the error banner to be dismissed.Use Case: So let's say I wanted to work fast in a development environment and ignore TS compilation errors, maybe I'm refactoring. I disable TS errors from blocking compilations with
TSC_COMPILE_ON_ERROR=true
so that I can move quickly. The compiler is outputting files as expected, but the error overlay covers my page. This effectively stops my work as I cannot see the page, even though the assets compiled just fine, and there is no simple way to disable it.Other reports:
Did you try recovering your dependencies?
Yes... although this isn't really relevant to this particular issue.
Which terms did you search for in User Guide?
I searched most of these in Stack overflow and the issues here too:
overlay, error overlay, TSC_COMPILE_ON_ERROR, disable error overlay, disable TS errors, disable typescript errors, enable overlay, enable error overlay, hide error overlay, etc.
Environment
Steps to reproduce
TSC_COMPILE_ON_ERROR=true
to your .env file or as a CLI argesc
keyExpected behavior
TSC_COMPILE_ON_ERROR=true
either:Actual behavior
When setting
TSC_COMPILE_ON_ERROR=true
:Reproducible demo
The text was updated successfully, but these errors were encountered: