ds300 / react-native-typescript-transformer

Seamlessly use TypeScript with React Native
MIT License
657 stars 50 forks source link

Compiler does not report error when compiling #35

Closed yuwenhuisama closed 6 years ago

yuwenhuisama commented 6 years ago

For react native, when there are compile errors, ts still dose not report them while tslint has marked them.

ds300 commented 6 years ago

Can you give an example? Syntax errors should be reported, but lint and type errors are not expected to be reported. See #13 for more details about why.

yuwenhuisama commented 6 years ago

Well, what I expect is exactly to report the type errors not only syntax errors, I wish this could be a feature to implement as an option.

RubenSandwich commented 6 years ago

@yuwenhuisama One way to get that feature is to use: https://github.com/callstack/haul. Which is a replacement for the React Native Packager. They have a typescript setup example: https://github.com/callstack/haul/blob/master/docs/Recipes.md.

ds300 commented 6 years ago

I'm going to close this issue because it's a duplicate of #29 — if you feel this is a separate issue, please feel free to open another issue and link to this one :pray: