Errors compiling typescript with okta-sdk-node-js due to node-fetch

running a tsc build I am seeing the error below. On the 6.5.0 verion and have the latest types for node.

node_modules/@okta/okta-sdk-nodejs/src/types/models/UserFactor.d.ts:22:26 - error TS7016: Could not find a declaration file for module ‘node-fetch’.

27 import { Response } from ‘node-fetch’;

Needed the types. They just needed to be installed:

npm install -D @types/node-fetch

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.