dilame / instagram-private-api

NodeJS Instagram private API SDK. Written in TypeScript.
MIT License
5.93k stars 1.14k forks source link

snakeCaseKeys is not a function #1519

Open omeranar1 opened 2 years ago

omeranar1 commented 2 years ago

import * as snakeCaseKeys from 'snakecase-keys';

public toJSON() {
    // @ts-ignore
    return snakeCaseKeys(classToPlain(this), { deep: true });
  }
Nerixyz commented 2 years ago

The package is in the package.json of this library and all versions from 3.1 export a single function. Are you sure this package is downloaded? It should get downloaded automatically when installing through npm/yarn/pnpm.