parcel-plugin-typescript icon indicating copy to clipboard operation
parcel-plugin-typescript copied to clipboard

Double output on error

Open prencher opened this issue 7 years ago • 0 comments

I'm seeing some weird double output with version 0.5.3 (parcel 1.5.1). It happens with both parcel index.html and parcel build index.html, but it seems less frequent with build.

Minimal reproduction: https://gist.github.com/prencher/73cc11f5a8a0701e8960f04fa22f2e4e

Example output:

$ parcel index.html
Server running at http://localhost:1234
✨  Built in 592ms.
🚨  /Users/thomas/test/index.ts(9,5)
Type 'Bar' is not assignable to type 'Foo'.  Property 'foo' is missing in type 'Bar'.
     8 |
  >  9 | let incorrect: Foo = new Bar();
       |     ^^^^^^^^^
    10 |


🚨  /Users/thomas/test/index.ts(9,5)
Type 'Bar' is not assignable to type 'Foo'.  Property 'foo' is missing in type 'Bar'.
     8 |
  >  9 | let incorrect: Foo = new Bar();
       |     ^^^^^^^^^
    10 |
    
⏳  Building hmr-runtime.js...
🚨  /Users/thomas/test/index.ts(9,5)
Type 'Bar' is not assignable to type 'Foo'.  Property 'foo' is missing in type 'Bar'.
     8 |
  >  9 | let edited: Foo = new Bar();
       |     ^^^^^^
    10 |

✨  Built in 29ms.
🚨  /Users/thomas/test/index.ts(9,5)
Type 'Bar' is not assignable to type 'Foo'.  Property 'foo' is missing in type 'Bar'.
     8 |
  >  9 | let edited: Foo = new Bar();
       |     ^^^^^^
    10 |

prencher avatar Feb 11 '18 02:02 prencher