Closed vicary closed 4 years ago
Fixed by deleting the node_module
directory and install everything again, must be some kind of upgrade artifacts.
It actually happened again, downgrading to typescript@3.7
and serverless@1.69
didn't help.
This is actually a bug caused by serverless-plugin-optimize
, see https://github.com/FidelLimited/serverless-plugin-optimize/issues/97#issuecomment-642589749 for workaround.
After a recent upgrade of the serverless package, there is a syntax error in the generated
.build/serverless_sdk/index.js
.Bash output attached below.
Not sure where went wrong.