Error during lambda invocation via API Gateway

Hi,

I’m getting the following error during lambda invocation via API Gateway:
“errorType”: “Runtime.ImportModuleError”,
“errorMessage”: “Error: Cannot find module ‘handlerrr’\nRequire stack:\n- /var/runtime/UserFunction.js\n- /var/runtime/index.js”,

Any help will be greatly appreciated.
Here’s some info:

sls --version
Framework Core: 2.21.1
Plugin: 4.4.2
SDK: 2.3.2
Components: 3.5.1

Language: typescript

Project structure:

mixi-backend
├── README.md
├── app
│ ├── common
│ │ └── model
│ ├── config
│ ├── services
│ │ ├── service-api
│ │ │ └── serverless.yml
│ │ └── storage-api
│ │ ├── common
│ │ │ └── exceptions.ts
│ │ ├── config
│ │ ├── controller
│ │ │ └── storageController.ts
│ │ ├── handlerrr.ts
│ │ ├── model
│ │ │ └── dto
│ │ │ └── signURIDTO.ts
│ │ ├── node_modules [709 entries exceeds filelimit, not opening dir]
│ │ ├── package-lock.json
│ │ ├── package.json
│ │ ├── serverless.yml
│ │ ├── service
│ │ │ └── storageService.ts
│ │ └── tsconfig.json
│ └── utils
│ ├── message.ts
│ ├── secretsManager.ts
│ └── uriSigner.ts
├── infrastructure
│ ├── README.md
│ ├── lib
│ │ ├── S3Stack.ts
│ │ ├── common.ts
│ │ └── index.ts
│ ├── node_modules [584 entries exceeds filelimit, not opening dir]
│ ├── package-lock.json
│ ├── package.json
│ ├── sst.json
│ ├── test
│ │ └── S3Stack.test.ts
│ └── tsconfig.json
├── node_modules [860 entries exceeds filelimit, not opening dir]
├── package-lock.json
├── package.json
├── serverless.common.yml
├── tsconfig.json
└── tslint.json

Deployed with the following command:
AWS_PROFILE=sphereo-cf-dev-deployer sls deploy --stage dev --verbose

from this directory:
/XXXXXX/xxxxx/Work/mixi-backend/app/services/storage-api

The content of the serverless.yml:

org: sphereo
service: storage-api

plugins:

  • serverless-plugin-typescript
  • serverless-offline

custom: ${file(…/…/…/serverless.common.yml):custom}

package:
individually: true
include:
- handlerrr.ts

provider:
name: aws
runtime: nodejs12.x
stage: dev
region: us-east-1
tracing:
apiGateway: true
lambda: true
apiGateway:
restApiId:
‘Fn::ImportValue’: ServiceApiGW-restApiId
restApiRootResourceId:
‘Fn::ImportValue’: ServiceApiGW-rootResourceId
environment:
stage: {self:custom.stage} songBucketARN: !ImportValue {self:custom.sstApp}-MiXiSongBucketARN

iamRoleStatements:
- {file(../../../serverless.common.yml):lambdaPolicyXRay} - Effect: Allow Action: - s3:* Resource: - !ImportValue {self:custom.sstApp}-MiXiSongBucketARN

functions:
getsigneduri:
handler: handlerrr.getSignedURI
events:
- http:
path: storage/getsigneduri
method: get
cors: true
request:
parameters:
querystrings:
fileURI : true

serverless.common.yml from the project root directory:

custom:
stage: {opt:stage, self:provider.stage} sstAppMapping: prod: prod stg: stg dev: dev sstApp: {self:custom.sstAppMapping.${self:custom.stage}, self:custom.sstAppMapping.dev}-mixi-backend-infrastructure

lambdaPolicyXRay:
Effect: Allow
Action:
- xray:PutTraceSegments
- xray:PutTelemetryRecords
Resource: “*”

Thanks in advance