https://pulumi.com logo
#typescript
Title
# typescript
w

worried-answer-92750

02/06/2024, 5:41 PM
Hi, I have been trying to get a lambda deployed with typescript using this tutorial: https://www.pulumi.com/ai/conversations/a96095d2-e507-4bd3-8a26-d23e744cba18 but I am getting this error:
*Error*: Cannot find module 'pg'
on my lambda whenever I execute it. Could someone please help me out? I have tried adding lambda layers to upload the
node_modules
directory but still not working
b

billions-river-87988

02/06/2024, 6:07 PM
does your lambda code package include the
node_modules/
folder? You would need to install the
pg
package in your project via NPM and package it