Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update usage.md #942

Open
wants to merge 2 commits into
base: gh-pages
Choose a base branch
from
Open

Conversation

jaysonng
Copy link
Contributor

For await to work, it needs to be inside an async function. or else an error will occur

SyntaxError: await is only valid in async functions and the top level bodies of modules

For await to work, it needs to be inside an async function. or else an error will occur 

```SyntaxError: await is only valid in async functions and the top level bodies of modules```
@mtrezza
Copy link
Member

mtrezza commented Jan 13, 2024

That's only true for old Node.js versions

@jaysonng
Copy link
Contributor Author

interesting. I'm running node 18.

is that for node 20? and what can we do you think to add to these docs for subtle differences in node version code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants