提示这个报错是因为使用了async/await等es7语法,需要babel进行转换

具体:(babel7)

$ yarn add @babel/runtime && yarn add --dev @babel/plugin-transform-runtime

并在.babelrc里面添加如下:

{
    ...,
    plugins: ['@babel/plugin-transform-runtime']
}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-27
  • 2022-12-23
  • 2021-07-22
  • 2022-02-26
猜你喜欢
  • 2022-12-23
  • 2021-11-20
  • 2021-09-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-14
相关资源
相似解决方案