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

demandé il y a 3 ans2162 vues
1 réponse
0

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

répondu il y a 3 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions