Skip to content

apollo-server-express@2.9.12 doesn't include node-fetch in its dependencies #3580

@ghost

Description

After upgrade from apollo-server-express@2.9.9 to apollo-server-express@2.9.12, TypeScript fails because it can't find the types for node-fetch:

node_modules/apollo-env/lib/fetch/fetch.d.ts(6,195): error TS7016: Could not find a declaration file for module 'node-fetch'. '/home/Proyectos/server/node_modules/node-fetch/lib/index.js' implicitly has an 'any' type.
  Try `npm install @types/node-fetch` if it exists or add a new declaration (.d.ts) file containing `declare module 'node-fetch';`

Similar to: #3471

EDIT: The trouble continue in version apollo-server-express@2.9.15

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions