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
Did not get 1 of 2 expected type errors during a fatal error #272
Comments
Does that error show if you just run tsc directly? |
This was a good minimal code sample, so I just threw it into the TS Playground, and it gives two errors, including the one mentioned. So it sounds like a potential bug, but no |
I created a minimal reproduction here and was unable to reproduce this issue. Both
So if you're not getting any error at all with rpt2, that would likely be due to a problem in your environment, and not a bug in rpt2. If what you meant was that you only got 1 error instead of 2 errors reported by rpt2 (which is not really written in your opening comment, and per my previous comment, no log was provided), then the reason for that is likely because rpt2 only reports the first error when it comes to a fatal error. |
What happens and why it is wrong
I expected to get
TS2322: Type 'number' is not assignable to type 'string'
for the below code, but the error does not show:Environment
Rollup + Vue + TypeScript
Versions
rollup.config.js
`rollup.config.js`:
tsconfig.json
`tsconfig.json`:
The text was updated successfully, but these errors were encountered: