2

Running:

riot --type typescript test.tag

I got the error:

SyntaxError: Use of const in strict mode.

How to fix?

4

1 回答 1

4

The problem was that I was using Node version v0.12.7.

The problem went away when I upgraded to Node v5.0.0.

(For example, using Homebrew, it would be just a case of brew upgrade node.)

于 2015-11-18T14:35:15.480 回答