@types/xxxx package and had problems.I added @types/whatwg-streams to the package.json dev dependencies, but still the failure exists.
Got new set of errors on tsc 2.5.2
node_modules/@types/react/index.d.ts(165,11): error TS2559: Type 'Component
' has no properties in common with type 'ComponentLifecycle
'.
node_modules/@types/whatwg-fetch/index.d.ts(11,13): error TS2451: Cannot redeclare block-scoped variable 'fetch'.
node_modules/@types/whatwg-fetch/index.d.ts(13,14): error TS2300: Duplicate identifier 'HeadersInit'.
FYI, a lot of my react-native project also errored out with tsc 2.5.2. It would be great if you could resolve the the issue for tsc 2.1.6
Definitions by: in index.d.ts) so they can respond.@loghorn this started after 3cc32b8e73320a5e9e4a17744236180f52c753d9
I solved it by upgrading typescript compiler to 2.3.2 and removing @types/whatwg-fetch from package.json
Shruti
Sent from my iPhone
On Sep 23, 2017, at 5:57 PM, Neil Zimmerman notifications@github.com wrote:
@Loghorn this started after 3cc32b8
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
@shrutic what did you use instead of types/whatwg-fetch?
Whatwg-fetch is built into typescript now . So no changes to code
Sent from my iPhone
On Sep 29, 2017, at 9:31 AM, Pavel notifications@github.com wrote:
@shrutic what did you use instead of ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
Most helpful comment
Whatwg-fetch is built into typescript now . So no changes to code
Sent from my iPhone