Skip to content

Frontend: TypeError: ky is not a function; @ get imdb.ts:679

Continuation of https://github.com/worr/node-imdb-api/issues/84


Update from user:

this was in yarn.lock

imdb-api@^4.3.0:
  version "4.3.0"
  resolved "https://registry.yarnpkg.com/imdb-api/-/imdb-api-4.3.0.tgz#b0df4aecb9a1cc8338073466c418ddb414513410"
  integrity sha512-MMqDUiXYXDdEmDDl1dO3E/kAI49iCMNfVGjKINyF3L4LU9w7ZjGE7MdahehtYnsY7fOTniSHi4XkdH1UnZHAhA==
  dependencies:
    ky "^0.23.0"
    ky-universal "^0.8.2"

but nothing in in package.json, so I tried to manually install them yarn add ky ky-universal now I have this inside package.json

"dependencies": {
         ...
        "ky": "^0.24.0",
        "ky-universal": "^0.8.2",
}

but I still got the same error hahahhaha too bad.

TypeError: ky is not a function
    get imdb.ts:679
    get imdb.ts:569

Should do some verification of how this works in frontend situations, and set up an integ test if necessary.