Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wilsonzlin opened this issue Jan 11, 2024 · 0 comments
Open

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

wilsonzlin opened this issue Jan 11, 2024 · 0 comments
Labels
SDK Issue pertains to the SDK itself and not specific to any service

Comments

@wilsonzlin
Copy link

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

@jyotisaini jyotisaini added the SDK Issue pertains to the SDK itself and not specific to any service label Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SDK Issue pertains to the SDK itself and not specific to any service
Projects
None yet
Development

No branches or pull requests

2 participants