Bcryptjs with ionic warning

Good day:

I got a warning when I use “@types/bcryptjs”: “3.0.0” in Ionic. After I import “@types/bcryptjs”: “3.0.0” in package.json file and successfully create the following:
BcryptJS.hashSync(password, salt);
and
BcryptJS.compareSync(password, hash);
I got warning both in command line when compile

[ng] WARNING in /Users/yurippe/node_modules/bcryptjs/dist/bcrypt.js
[ng] Module not found: Error: Can’t resolve ‘crypto’ in ‘/Users/yurippe/node_modules/bcryptjs/dist’

and Chrome console like:

Module not found: Error: Can’t resolve ‘crypto’ in ‘/Users/yurippe/node_modules/bcryptjs/dist’
warnings @ vendor.js:110025

It is not big problem, all functions fine, but could somebody can help how to remove this warning please?