Closed h0rb closed 3 years ago
That's not a package issue, The error is in the message, use a async function.
Because the functions return promises, I find it more elegant to use async/await - assuming it is in an async function.
You can fix this by wrapping it in:
(async function(){
// await ...
}())
hello, I get this error when I run example code: `const users = await lookupName("tehpicix"); ^^^^^
SyntaxError: await is only valid in async function `