I am making a node app that uses the npm library MojangJS to get the uuid of a Minecraft account from the account username. However, whenever this code segment is run, I get this error: MojangJS Error: TypeError: Cannot read property 'hasOwnProperty' of undefined
.
let id;
await mojangjs.getUUID(usernameParts[1]).then(uuid => {
id = uuid;
}).catch(err => console.error(err));