AWS Lambda JavaScript - Runtime.ImportModuleError: Error: Cannot find modul

0

We are getting an error with our lambda function(JS)
Runtime.ImportModuleError: Error: Cannot find module '@ourprivatemodule/src/service'

the module(@ourprivatemodule) is a private npm package
we checked the zip file uploaded by our bitbucket pipeline- and in the node_modules folder our module exists along with other modules like axios, @nestjs/core etc...

any stuff that we may have missed that may have caused this error?
its weird since other modules are 'found' and yet our particular module is not.. yet it is in the folder with the other modules

asked 3 years ago2154 views
1 Answer
0

our private npm package has issues to it, fixed the issues then the Cannot find module error went away

answered 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions