I tried to use md5 hash for hashing user password in Angular 2, but for some reason when I run my application Md5 module is not recognized.

I have also imported it in typescript file like this: import { Md5 } from 'ts-md5/dist/md5';
For me it's weird that Md5 is recognized in Visual Studio, but in Google Chrome I get error as you can see on picture. So my question is where is the mistake and how to fix it?