Looking for advice on integrating the CryptoJS library with Angular 2 using TypeScript? Many existing resources are outdated and assume the use of SystemJS. Can someone provide straightforward instructions for incorporating CryptoJS with Angular 2 and TypeScript?
I have successfully installed CryptoJS using npm install crypto-js
.
After attempting to add typings with
install crypto.js --ambient --save
, I received a warning about the deprecation of --ambient and should use --global instead.
Switching to --global resulted in an error stating that no typings were available!
Any tips for someone new to WebPack, NodeJS, and TypeScript would be greatly appreciated. The CryptoJS library is located in the node_modules directory, but any attempts to "import" CryptoJS result in a "Module not found" error.