Google Closure Compiler parse error: invalid property id for `css({float:'left'})`

前端 未结 2 1769
我寻月下人不归
我寻月下人不归 2021-01-19 03:29

I\'m using Google Closure Compiler application (command line interface). When I run it I get the below error.

deploy/js/Home.js:40: ERROR - Parse error. inva         


        
2条回答
  •  灰色年华
    2021-01-19 03:46

    If you already have tons of soy files, and don't want to change everthing in every soy file, you can pass a flag to the compiler:

    --compiler_flags="--language_in=ECMASCRIPT5"
    

    It worked out well for me.

提交回复
热议问题