Cardano-wallet-js not working in node 16

We are using this cardano package i.e cardano-wallet-js to generate a recovery phrase but this is throwing an error in node 16
Error: Cannot find module ‘node:crypto’ can someone please help me with this

Thanks