-
Notifications
You must be signed in to change notification settings - Fork 71
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
Vague failed to transpile
error -- noEmitOnError: true
breaks rpt2
#254
Comments
Per the downstream issue, it seems like OP believed this might be caused by #234 , with |
pnpm
pnpm
failed to transpile
error when using pnpm
I fixed It was a good thing that the commit hash was included in the issue so that I could go back in time to the right spot. I tried upgrading rpt2 to latest and added the fix in #332 locally to So, as far as I can tell, I don't think this is related to #234 , as the fix for it does not fix this issue, unfortunately. |
failed to transpile
error when using pnpm
failed to transpile
error during fatal error when using pnpm
failed to transpile
error during fatal error when using pnpm
failed to transpile
error message after fatal error
Investigated a little bit more and both semantic and syntactic diagnostics return empty. These are provided by the TS Checked one step out, the snapshot, and I found:
from That is indeed what that file looks like and there are indeed no errors in that file... so the lack of diagnostic output is correct in that case. The error from
EDIT: See below, this is actually due to |
One more try and I seem to have found root cause finally! When this is removed, rpt2 passes, and your rpt2 has the setting There's also an old, stale feature request, #168 , that requests all errors be reported before aborting, instead of just the first error. That seems related/like what this might duplicate. Although I actually think your use-case is already handled and doesn't require that, as That being said, since rpt2 defaults
So once |
failed to transpile
error message after fatal errorfailed to transpile
error, noEmitOnError: true
breaks rpt2
failed to transpile
error, noEmitOnError: true
breaks rpt2failed to transpile
error -- noEmitOnError: true
breaks rpt2
Actually, the type-only portion of this should be fixed by #345 as this use-case was using |
What happens and why it is wrong
I get the error:
This is almost impossible to debug. Luckily I figured out I can do
npx tsc
and get the real error message:Environment
Versions
Steps to reproduce
If you do not have
pnpm
then first runnpm install -g pnpm
git clone git@github.com:sveltejs/kit.git cd kit git reset --hard 2483ae3730a7219814cc654c03b0409a797de2ee pnpm install pnpm -r build
After this, you can build just the relevant sub-project by running
cd packages/kit
and thennpx rollup -c
for faster debuggingOther context
Looks like it's coming from here:
rollup-plugin-typescript2/src/index.ts
Line 221 in 6fb0e75
printDiagnostics
right above looks to be being passed an empty array of diagnosticsThe text was updated successfully, but these errors were encountered: