Cannot find module 'util' in blind_threshold_bls.js #252
Replies: 0 comments 3 replies
-
Unfortunately I don't have any special insight here, other than that it looks like the util module is not automatically available in Nextjs the way we would expect it to be. A quick google of |
Beta Was this translation helpful? Give feedback.
-
Instead follow the |
Beta Was this translation helpful? Give feedback.
-
I’m building a dApp with SocialConnect on a Nextjs app without contractKit following the ethers example code. When I execute
OdisUtils.Identifier.getObfuscatedIdentifier
from the@celo/identity package
, I’m getting a“cannot find module ‘util’
error, and I verified I’m passing all the expected arguments.Is there any package I need to add or any additional configuration to solve this issue? Here’s the respective repo.
The error comes from blind_threshold_bls.js on line number 4. We also tried to install the util lib (just in case), but it didn’t work.
Beta Was this translation helpful? Give feedback.
All reactions