Open Happy-Ferret opened 7 years ago
I suspect this is the result of newer versions of sweet.js being incompatible with contracts.js (but as I'm new to both sweet.js and contract.js, I cannot be sure).
That's correct.
Temporary workaround:
npm install -g sweet.js@0.7.4
instead of
npm install -g sweet.js
Running
sjs --module contracts-js/macros -o output.js ...
on an otherwise (just theimport
, nothing else) empty.js
file yields the following output.Running it on a file containing the "broken" code from the main page yields the following error
I suspect this is the result of newer versions of sweet.js being incompatible with contracts.js (but as I'm new to both sweet.js and contract.js, I cannot be sure).
Would be nice if there was something that could be done about this.