其他分享
首页 > 其他分享> > Syntax Error: Unexpected token, expected {

Syntax Error: Unexpected token, expected {

作者:互联网

 

 

加入.babelrc文件

{
    "presets": [
        "es2015-loose",
        "stage-1"
    ],
    "plugins": [
        "transform-flow-comments"
    ]
}

 

标签:Unexpected,babelrc,presets,flow,transform,comments,token,expected
来源: https://www.cnblogs.com/songya/p/10484721.html