eslint Parsing error: Unexpected token function with async

后端 未结 4 2019
长情又很酷
长情又很酷 2021-02-04 00:09

I am getting the following error in async usage on ESLINT.

eslint Parsing error: Unexpected token function with async

Here is my

4条回答
  •  迷失自我
    2021-02-04 00:51

    In my case it got fixed when I just changed from:

    "parserOptions": { "ecmaVersion": 8 }

    to

    "parserOptions": { "ecmaVersion": 2018 }

提交回复
热议问题