Javascriptservices: TS2.2 doesn't like "@types/whatwg-fetch"

Created on 23 Feb 2017  路  3Comments  路  Source: aspnet/JavaScriptServices

https://github.com/Microsoft/TypeScript/issues/4948#issuecomment-279109510 (Sounds like issue with isomorphic-fetch also)

The entry

"@types/whatwg-fetch": "0.0.28",

Needs to be removed from in fex. ReactReduxSpa/package.json

But then domain-task doesn't like it as its a dependency 馃槥

Breaking-Changes#typescript-22

Most helpful comment

Thanks for reporting this!

To fix this, I've updated the templates' TS dependencies to 2.2.1+. This meant that the @types/whatwg-fetch package references could be removed, since fetch is now included in the TS standard lib.

The updated templates will be published as version 0.8.6 shortly.

All 3 comments

Or maybe temporally change typescript from major version "typescript": "^2.0.3", to minor version "typescript": "~2.0.3",?

Thanks for reporting this!

To fix this, I've updated the templates' TS dependencies to 2.2.1+. This meant that the @types/whatwg-fetch package references could be removed, since fetch is now included in the TS standard lib.

The updated templates will be published as version 0.8.6 shortly.

Had similar story here https://github.com/angular/angular-cli/issues/5692 but figureout the solution by looking here https://github.com/Microsoft/TypeScript/issues/4948

Was this page helpful?
0 / 5 - 0 ratings

Related issues

LovedByTheLord picture LovedByTheLord  路  3Comments

dantheman999301 picture dantheman999301  路  4Comments

docrinehart picture docrinehart  路  4Comments

asadsahi picture asadsahi  路  3Comments

mounthorse-slns picture mounthorse-slns  路  3Comments