md-y/mangadex-full-api

URL is not defined

Closed this issue · 3 comments

my code

await Mangadex.agent.login('my_login', 'my_password', false)
let manga = await Mangadex.Manga.search(querry)
console.log(manga)

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

My bad. NodeJS was outdated. Sorry.

ye, same here, its a little bad not saying the minimun node version in readme