Yes, for sure it's supported. What project JavaScript language version is chosen (Settings (Preferences if you are on Mac)/Languages and frameworks/JavaScript)? Also, does your code compile? Babel reports errors on await unless it's used inside a function marked with async...
Yes, for sure it's supported. What project JavaScript language version is chosen (Settings (Preferences if you are on Mac)/Languages and frameworks/JavaScript)? Also, does your code compile? Babel reports errors on await unless it's used inside a function marked with async...
Ah my bad, it should be used in wrapped `async` function
The reason is using await keyword outside async-function.
Error message is confusing.
There is how to reproduce:
we plan to provide a special inspection with a quick fix - see https://youtrack.jetbrains.com/issue/WEB-24228