I installed this repo as an npm package and got this error when trying to login
const { LocalClient } = require('valorant-api');
const client = new LocalClient();
client.init('na').then(async () => {
await client.login('username', 'password')
});
Uncaught:
Error: TypeError [ERR_INVALID_ARG_TYPE]: The "url" argument must be of type string. Received undefined
at LocalClient.fetch (C:\Users\James\Documents\NodeProjects\oen-valorant-bot\node_modules\valorant-api\src\GenericClient.js:70:15)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async LocalClient.login (C:\Users\James\Documents\NodeProjects\oen-valorant-bot\node_modules\valorant-api\src\LocalClient.js:72:12)
I installed this repo as an npm package and got this error when trying to login