为了账号安全,请及时绑定邮箱和手机立即绑定

babel 转码 async await 无法解析问题

babel 转码 async await 无法解析问题

一只名叫tom的猫 2018-09-15 14:12:37
使用 babel 转码 async await 无法解析问题报错:You gave us a visitor for the node type "ForAwaitStatement" but it's not a valid type.babelrc 配置文件{    "plugins": [        "transform-strict-mode",         "transform-es2015-modules-commonjs",        "transform-es2015-spread",          "transform-es2015-destructuring",        "transform-es2015-parameters"     ],    "presets": [        "es2015",        "stage-0"     ] }
查看完整描述

1 回答

?
阿晨1998

TA贡献2037条经验 获得超6个赞

presets-stage-3 才支持,或者直接用 preset-latest

查看完整回答
反对 回复 2018-10-27
  • 1 回答
  • 0 关注
  • 1608 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信