[Archive] Next.js/Webpack: Module not found: Can't resolve './build/Release/ecdh'

:classical_building: Archived Content from Web3Auth Community

This topic was originally posted by githubdiscussions on 2/15/2023.
This content has been migrated from our previous community forum to preserve valuable discussions.


Hello friends! I've used older versions of Web3Auth for other projects on Next v12 with no issues.

I'm building a web dapp (https://www.utopeon.com) on Next v13 with Web3Auth.

I encountered this error in my terminal during development:

./node_modules/@toruslabs/eccrypto/index.js
Module not found: Can't resolve './build/Release/ecdh' in ...

It appears others have raised this similar issue on the repository which appears to be no longer maintained: torusresearch/eccrypto#28.

It happens when importing from @web3auth/modal.

I've tried adding some of the @web3auth/* repositories to transpilePackages in my project's next.config.js but no luck. I'll try again with @toruslabs/eccrypto.

Looking forward to some help finding a solution for this! Thank you so much, I appreciate everyone's support.



Originally posted by: imsanchez

Check the discussion at: https://github.com/orgs/Web3Auth/discussions/1327