I used following npm mand to install
npm install crypto-js
After installing i imported
import CryptoJS from 'crypto-js';
But i am not getting any when i type Crypto. i dont get any IntelliSense. I have read on some of the posts which says that i need to add
npm install --save @types/crypto-js
Tried that as well but then i start getting the error on import statement
I will appreciate if someone can guide me what are the steps i need to follow to make this work.
I used following npm mand to install
npm install crypto-js
After installing i imported
import CryptoJS from 'crypto-js';
But i am not getting any when i type Crypto. i dont get any IntelliSense. I have read on some of the posts which says that i need to add
npm install --save @types/crypto-js
Tried that as well but then i start getting the error on import statement
I will appreciate if someone can guide me what are the steps i need to follow to make this work.
Share Improve this question edited Sep 6, 2018 at 8:42 Phonolog 6,5313 gold badges39 silver badges65 bronze badges asked Sep 6, 2018 at 7:06 Muhammad OmaisMuhammad Omais 3291 gold badge4 silver badges12 bronze badges1 Answer
Reset to default 5You need to import like this:
import * as CryptoJS from 'crypto-js';