You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ cat node_modules/isomorphic-unfetch/package.json | grep version
"version": "3.0.0",
$ tsc --noEmit --project .
node_modules/isomorphic-unfetch/index.d.ts:2:3 - error TS2305: Module '"../../../../../../../Users/balupton/Projects/meet/bevry-meet/node_modules/node-fetch/lib"' has no exported member 'Body'.
2 Body as NodeBody,
~~~~
node_modules/isomorphic-unfetch/index.d.ts:9:45 - error TS2749: 'NodeHeaders' refers to a value, but is being used as a type here.
9 export type IsomorphicHeaders = Headers | NodeHeaders;
~~~~~~~~~~~
node_modules/isomorphic-unfetch/index.d.ts:11:47 - error TS2749: 'NodeResponse' refers to a value, but is being used as a type here.
11 export type IsomorphicResponse = Response | NodeResponse;
~~~~~~~~~~~~
node_modules/isomorphic-unfetch/index.d.ts:12:45 - error TS2749: 'NodeRequest' refers to a value, but is being used as a type here.
12 export type IsomorphicRequest = Request | NodeRequest
~~~~~~~~~~~
Found 4 errors.
$ cat node_modules/isomorphic-unfetch/index.d.ts
import {
Body as NodeBody,
Headers as NodeHeaders,
Request as NodeRequest,
Response as NodeResponse
} from "node-fetch";
declare namespace unfetch {
export type IsomorphicHeaders = Headers | NodeHeaders;
export type IsomorphicBody = Body | NodeBody;
export type IsomorphicResponse = Response | NodeResponse;
export type IsomorphicRequest = Request | NodeRequest
}
declare const unfetch: typeof fetch;
export default unfetch;
> cat node_modules/node-fetch/package.json | grep version
"version": "2.6.0",
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: