Replies: 1 comment 1 reply
-
you need to run your script as ES module in order to be able to use top level await. ( change extension to https://www.stefanjudis.com/today-i-learned/top-level-await-is-available-in-node-js-modules/ |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
(MySQL2 使用范围内可用的默认 Promise 对象。 但是你可以选择你想使用的 Promise 实现) in documentation_zh-cn ,maybe it doesn't work
SyntaxError: await is only valid in async functions and the top level bodies of
modules
I have npm i bluebird
Thank you very much
Beta Was this translation helpful? Give feedback.
All reactions