When using apollo-env through apollo-server, I get the following error during TypeScript builds:
node_modules/apollo-env/lib/fetch/fetch.d.ts(6,195): error TS7016: Could not find a declaration file for module 'node-fetch'
This can be fixed by adding @types/node-fetch as a dependency of apollo-env. Or as an alternative, update node-fetch to v3, as it bundles type declarations with itself.
When using
apollo-envthroughapollo-server, I get the following error during TypeScript builds:This can be fixed by adding
@types/node-fetchas a dependency ofapollo-env. Or as an alternative, updatenode-fetchto v3, as it bundles type declarations with itself.