External package packed but not resolved by Lambda

Hi all,

I am building an API that uses a package I forked. I include it in the package.json like
and everything works fine locally with sis invoke local -f function-name. I deployed it on Lambda and it’s giving me "errorMessage": "Cannot find module.

Then I tried to see if I just deploy this function with sls deploy -f function-name and I can see the package is in the .webpack/dependencies/node_modules folders with no error, but still Lambda can’t find the module “apn”. If I change it back in package.json like "apn":"^2.2.0", Lambda can find the module and run with no problem.

can you share the repo and/or your serverless.yml?