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

已提問 3 年前檢視次數 2162 次
1 個回答
0

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

已回答 3 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南