URL is not defined
Closed this issue · 3 comments
albertobazilio98 commented
my code
await Mangadex.agent.login('my_login', 'my_password', false)
let manga = await Mangadex.Manga.search(querry)
console.log(manga)
datWeazel commented
Same here using this:
const api = require("mangadex-full-api");
api.agent.domainOverride = "mangadex.org"; //Tried mangadex.cc aswell
var manga = new api.Manga();
manga.fillByQuery(name).then((manga) => {
return (`Id: ${manga.id} | Title: ${manga.title}`);
});
(node:14128) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): ReferenceError: URL is not defined
(node:14128) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code
datWeazel commented
My bad. NodeJS was outdated. Sorry.
albertobazilio98 commented
ye, same here, its a little bad not saying the minimun node version in readme