Skip to content

Could not find a declaration file for module 'node-fetch' #257

Open
@wilsonzlin

Description

@wilsonzlin

I'm getting this error when trying to build a TypeScript project containing the OCI library:

node_modules/oci-common/lib/auth/url-based-x509-certificate-supplier.d.ts:10:26 - error TS7016: Could not find a declaration file for module 'node-fetch'. '/home/wl/Documents/repos/autoherd/backend/autoherd-api/node_modules/node-fetch/lib/index.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/node-fetch` if it exists or add a new declaration (.d.ts) file containing `declare module 'node-fetch';`

10 import { Response } from "node-fetch";
                            ~~~~~~~~~~~~


Found 1 error in node_modules/oci-common/lib/auth/url-based-x509-certificate-supplier.d.ts:10

Library: 2.76.0
TypeScript: 5.3.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    SDKIssue pertains to the SDK itself and not specific to any service

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions