# Node Module not found

**URL:** <https://community.hubspot.com/t/node-module-not-found/75699>\
**Category:** CMS Development\
**Tags:** local-development\
**Created:** [February 22, 2023, 6:49am UTC](https://community.hubspot.com/t/node-module-not-found/75699 "2023-02-22T06:49:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SChauhan9](https://avatars.discourse-cdn.com/v4/letter/s/c6cbf5/32.png) [@SChauhan9](https://community.hubspot.com/u/SChauhan9)\
**Post date:** [February 22, 2023, 6:49am UTC](https://community.hubspot.com/t/node-module-not-found/75699/1 "2023-02-22T06:49:52Z")

</div>

Hi,

I am working on to generate pdf from workflow using custom code by importing **pdfkit** node module. But we are getting error **Cannot find module ‘pdfkit’ .**

Below is my custom code example :

 ![Screenshot 2023-02-22 121506.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/d/d19916ede14128680bcd1d0e3c3844c90ec4c24a.png)

I am facing this issues when I test the code -

 ![SChauhan9_0-1677048566107.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/6/62c5909a4674721fc2796c39611365a0ad0c15d5.png)

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [February 23, 2023, 11:47pm UTC](https://community.hubspot.com/t/node-module-not-found/75699/2 "2023-02-23T23:47:07Z")

</div>

Hi, @SChauhan9 👋 Thanks for reaching out. Can you add your examples as a code block? It’s challenging for the community to troubleshoot code from a screenshot.

 ![CleanShot 2023-02-23 at 16.46.13.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/2/f/2f7b6f8062798e598f418eb8214092aa6cf53134.png)

Thank you! — Jaycee
