Question

After migrating to new mac book computer iced coffee script starts work incorrectly.

When I run script ...

iced script.iced

... I got error ...

ReferenceError: autocb is not defined

... on the row:

exports.method = (arg1, arg2, autocb)=>

On old mac it works good. Iced coffee script versions are the same on both machines. On both machines I can call iced in terminal:

iced
iced> a = 3
3
Était-ce utile?

La solution

The problem was in iced-coffee-script version. On old machine it was 1.6.3-f

 iced --version                                                                                                                                                                                          ⏎
IcedCoffeeScript version 1.6.3-f

On new - 1.6.3-i. I installed 1.6.3-f and all starts work well on new machine.

npm i iced-coffee-script@1.6.3-f -g
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top