How to polyfill unsupported npm package in expo?

I am getting an error during app loading due to some dep package trying to use the ‘crypto’ lib.
Is there a way to map or polyfill the crypto lib something else that runs on the expo?

Here is the error message:
› Reloading apps
Android Bundling failed 219ms
The package at “node_modules/@toruslabs/eccrypto/dist/eccrypto.cjs.js” attempted to import the Node standard library module “crypto”.
It failed because the native React runtime does not include the Node standard library.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.