0xPARC / circom-starter

basic circom project using hardhat-circom (upgrade to circom2 is WIP)
125 stars 41 forks source link

fs__default is not defined #2

Closed calvbore closed 3 years ago

calvbore commented 3 years ago

So yarn dev seems not to work on windows, I'm assuming this is because snarkjs doesn't play very well with windows, haven't had a chance to test on a linux machine yet.

circom-starter-error
jacobrosenthal commented 3 years ago

Thanks for the report. I can confirm upstream with snark 3.5.1 in the lock file, as well as 3.5.9 (the latest snarkjs) both work on linux so it does appear to be a windows thing with that rollup fs__ stuff. @phated has been looking at snarkjs a ton recently so hoping he can weigh in.

phated commented 3 years ago

It seems that you are also on a really old version of nodejs. Basically, snarkjs only commits to working on node 14+ (though you can force it to work on 12-something). If you are using node 14+, it will load the ESM modules, which wouldn't show this issue.