I’m getting a conflict in type definitions for type ‘Response’ when building typescript app with vscode, apollo client & node-fetch
“Type ‘Promise<import("/home/mwoodpatrick/projects/git/www/blog-series-nextjs-nx/node_modules/@types/node-fetch/index").Response>’ is not assignable to type ‘Promise’.\n Type ‘Response’ is missing the following properties from type ‘Response’: trailer, formData”,
Seems like two type definitions are being used: at the same time:
https://github.com/microsoft/TypeScript/blob/main/lib/lib.dom.d.ts
and
Does anyone have any suggestions on how to fix or have a solution that combines apollo client & node-fetch and builds with vscode?