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

feita há 3 anos2162 visualizações
1 Resposta
0

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

respondido há 3 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas