Medium/dynamite

how to use this library with lambda?

Opened this issue · 0 comments

when i import this library to my lambda in serverless project, this error shows up

module initialization error: TypeError
at Object.<anonymous> (/var/task/discounts/router.js:648:79)
at __webpack_require__ (/var/task/discounts/router.js:20:30)
at Object.defineProperty.value (/var/task/discounts/router.js:597:15)
at __webpack_require__ (/var/task/discounts/router.js:20:30)
at Object.<anonymous> (/var/task/discounts/router.js:255:23)
at __webpack_require__ (/var/task/discounts/router.js:20:30)
at Object.defineProperty.value (/var/task/discounts/router.js:63:18)
at Object.<anonymous> (/var/task/discounts/router.js:66:10)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)