Unable to import module 'handler': Error
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/var/task/node_modules/serverless-secrets/client/index.js:6:17)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
I checked what client/index is loading and it is .serverless-secrets.json.
Then I checked package on S3 and .serverless-secrets.json is not bundled.
AWS Lambda function is exiting with error:
I checked what client/index is loading and it is
.serverless-secrets.json
.Then I checked package on S3 and
.serverless-secrets.json
is not bundled.My serverless.yml looks like this:
Offline mode works.
These are deploy logs:
Version:
3.0.0-beta.10