This repository has been archived by the owner on Aug 18, 2021. It is now read-only.
Parsing error: await is a reserved word #604
Labels
Comments
|
@nicolo-ribaudo That's what I have but am still getting the error. |
Have you tried to add the async in your arraw function? |
Forgot about this issue, but yeah I think that was it - forgetting to make the callback function async |
It would be nice if babel could say "await can only be used if the function is marked async" instead of this cryptic error. |
For anyone stumbling across this issue, improving the error output caused by using |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I want to try dynamic import (https://developers.google.com/web/updates/2017/11/dynamic-import) at my project.
But get an error from eslint
Parsing error: await is a reserved word
The text was updated successfully, but these errors were encountered: