简体   繁体   中英

ReferenceError: autocb is not defined

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM