I'm trying to make use of this module in typescript https://www.npmjs.com/package/youtube-api but after I write the following code I receives Runtime errors: fs.readdSync is not function. It seems to come from the 'googleapis' package that is require on the very first line of the below
const Youtube = require("youtube-api")
, fs = require("fs")
, readJson = require("r-json")
, Lien = require("lien")
, Logger = require("bug-killer")
, opn = require("opn")
, prettyBytes = require("pretty-bytes")
;
via J.Rem
No comments:
Post a Comment