python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Top level await not working in ECMAScript
I am rather confused as I have read that top level await is supported in ESM but when I try it out in a html file it does not work?
Were I found that is says:
Top-level await does not work with node 1...
Jalrux
Votes: 0
Answers: 1
TS Jest won't accept top-level-awaits with NodeJS 16 & TypeScript
I'm trying to update my NodeJS 12 & TypeScript app to Node16, one of the reasons is the need to use top-level-awaits.
The code compiles correctly after the update, but Jest won't accept the specif...
galah92
Votes: 0
Answers: 2