You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2022-02-20 13:37:45.787 ERROR Uncaught Exception {"errorType":"TypeError","errorMessage":"(0 , core_1.default) is not a function","stack":["TypeError: (0 , core_1.default) is not a function"," at Object.<anonymous> (/var/task/src/fulfillment.js:193:38)"," at Module._compile (internal/modules/cjs/loader.js:1085:14)"," at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)"," at Module.load (internal/modules/cjs/loader.js:950:32)"," at Function.Module._load (internal/modules/cjs/loader.js:790:12)"," at Module.require (internal/modules/cjs/loader.js:974:19)"," at require (internal/modules/cjs/helpers.js:93:18)"," at _tryRequireFile (/var/runtime/UserFunction.js:63:32)"," at _tryRequire (/var/runtime/UserFunction.js:151:20)"," at _loadUserApp (/var/runtime/UserFunction.js:197:12)"]}
Expected behaviour
Does not raise type error.
Environment (please complete the following information):
This might be resolved by middy hopefully to moving to esm for v3. But, there are still some unknowns from AWS on what they are doing. aws-powertools/powertools-lambda-typescript#465 might have a workaround for you.
Describe the bug
Using Serverless framework with serverless-plugin-typescript. At runtime, the following type error is produced:
To Reproduce
How to reproduce the behaviour:
See https://github.com/kazkansouh/middy-bug for a self contained example.
serverless-plugin-typescript
.Expected behaviour
Does not raise type error.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: