oracle/oci-typescript-sdk

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

Opened this issue · 0 comments

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