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
--watch
crashes upon @rollup/plugin-typescript
check failure
#4986
Comments
Filed rollup/plugins#1491 to track it on the plugin side, in case it's just a plugin issue (unlikely, but I can't rule it out). |
Here's everything I tried to mitigate, each to no avail:
The issue in question is a family of highly related errors. The reason they're split is because I did a few times have the type variant (but not the unused variant) report an actual TS error before exiting, but I wasn't able to easily isolate it while putting together this repro. I also suspect it's just a minor variation of the same issue. Let me know if you need anything else. |
There was indeed one issue in the error handling in Rollup that swallows "uncaught" errors. #4987 should fix this, giving you the proper error. Beyond that, I would be doubtful if the error is really within Rollup, but let's see. |
@lukastaegert Question: does that address the issue of bad input to |
Exactly, that is the issue it addresses. It was accidentally passing the error as the exit code for the uncaughtException event. Which leads me to believe that there is an uncaught exception, but I did not run your test case yet. |
Rollup Version
3.21.6
Operating System (or Browser)
Debian 11 Bullseye and Ubuntu 22.04.2 Jammy, run inside WSL 2 (WSL 1.2.5.0, kernel 5.15.90.1) under Windows 10
Node Version (if applicable)
v16.20.0 in Debian and Ubuntu, v20.1.0 in Ubuntu
Link To Reproduction
https://github.com/dead-claudia/rollup-type-crash, https://github.com/dead-claudia/rollup-unused-crash
Expected Behaviour
This is a family of highly related bugs, and the two links are for two different sets of test cases. Here's the expectation with each type of bug:
dist.js
to be created/updatedActual Behaviour
dist.js
is not generated, even if youtouch
it after the initial correctionThe error generated by Node v20.1.0 is this:
The README details each one of these in full.
The text was updated successfully, but these errors were encountered: