[英]SyntaxError: Use of const in strict mode with Riot/TypeScript
Running: 运行:
riot --type typescript test.tag
I got the error: 我得到了错误:
SyntaxError: Use of const in strict mode.
How to fix? 怎么修?
The problem was that I was using Node version v0.12.7
. 问题是我正在使用Node v0.12.7
版本。
The problem went away when I upgraded to Node v5.0.0
. 当我升级到Node v5.0.0
时,问题消失了。
(For example, using Homebrew, it would be just a case of brew upgrade node
.) (例如,使用Homebrew,这只是brew upgrade node
一种情况。)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.