Using node packages in Ionic

I am currently trying to use the crypto library in my Ionic application. Whilst VS Code picks up my import, import * as crypto from 'crypto';, correctly and provides me with IntelliSense on the functions within the package. When I try to run the application using cordova I get the following error, error TS2307: Cannot find module 'crypto'.

Does anyone know how to include default node packaged libraries such as crypto in Ionic?

Hi, I had this issue too. I found this but I did not test it yet :