iden3 / circomlibjs

Javascript library to work with circomlib circuits
77 stars 58 forks source link

Issue running in React.js (browser) #7

Open therealjmj opened 2 years ago

therealjmj commented 2 years ago

Hi all,

I'm experiencing an issue with both circomlibjs and circomlib on browser:

Uncaught TypeError: Cannot read properties of undefined (reading 'fromString') at Object../node_modules/circomlib/src/babyjub.js (babyjub.js:20:1)

It seems to occur when circomlibjs loads ffjavascript. It cannot find Scalar (or any other exported submodules).

Has anyone had success running circomlibjs on browser?

kazelion commented 2 years ago

Hi, I am experiencing the same issue. Have you solved the problem?

KannuSingh commented 2 years ago

have anyone got any solution for this issue?

ZerLock commented 1 year ago

Me too

ZerLock commented 1 year ago

You can solve this issue with a projet on Next. I was on React but when I switched to Next.js it works ! But for React.js it don't wok yet