# Using node packages in Ionic

**URL:** <https://forum.ionicframework.com/t/using-node-packages-in-ionic/156630>\
**Category:** ionic-v3\
**Created:** [February 18, 2019, 6:38am UTC](https://forum.ionicframework.com/t/using-node-packages-in-ionic/156630 "2019-02-18T06:38:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pierrephilipdp](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/pierrephilipdp/32/123813_2.png) [@pierrephilipdp](https://forum.ionicframework.com/u/pierrephilipdp)\
**Post date:** [February 18, 2019, 6:38am UTC](https://forum.ionicframework.com/t/using-node-packages-in-ionic/156630/1 "2019-02-18T06:38:30Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![nesbhm](https://avatars.discourse-cdn.com/v4/letter/n/df705f/32.png) [@nesbhm](https://forum.ionicframework.com/u/nesbhm)\
**Post date:** [February 18, 2019, 11:19am UTC](https://forum.ionicframework.com/t/using-node-packages-in-ionic/156630/2 "2019-02-18T11:19:28Z")

</div>

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

- [https://gist.github.com/niespodd/1fa82da6f8c901d1c33d2fcbb762947d](https://gist.github.com/niespodd/1fa82da6f8c901d1c33d2fcbb762947d)
- [https://github.com/angular/angular-cli/issues/1548#issuecomment-427653778](https://github.com/angular/angular-cli/issues/1548#issuecomment-427653778)
