nickredmark / ooth

User identity/authentication/accounts management microservice for node.js
https://nmaro.github.io/ooth/
MIT License
605 stars 65 forks source link

isomorphic-fetch migrate to cross-fetch #79

Closed braytonstafford closed 5 years ago

braytonstafford commented 5 years ago

Reference Issue #78

I've yarn installed in the packages/ooth-client folder and done a yarn test and it fails with this error and now I'm a little lost and any help is appreciated.

src/index.ts:157:13 - error TS2349: Cannot invoke an expression whose type lacks a call signature. Type 'typeof import("cross-fetch")' has no compatible call signatures.

I then tried removing this from package.json and re-ran the test and it failed with the same error.

"@types/isomorphic-fetch": "0.0.34",

I also looked for @types/cross-fetch but dont see any definitions.