serverless-bundle icon indicating copy to clipboard operation
serverless-bundle copied to clipboard

transpile typescript with inversify

Open slaplace opened this issue 5 years ago • 3 comments

Hello I wish to migrate to serverless-bundle to avoid managing webpack and so on, unfortunatly it seems that the code deployed is not correct when inversify is used. To demonstrate it, I made a very simple project with 1 lambda that call a class function of a container when it's invoked. unzip, npm install then npm run start TypeError: Cannot read property 'Foo' of undefined bundle.zip

Any idea how to update webpack/babel configuration to handle inversify?

Thanks for your help

slaplace avatar Sep 16 '20 11:09 slaplace

I tried the project you uploaded and tried this. It seems to work?

Screen Shot 2020-10-09 at 5 20 00 PM

jayair avatar Oct 09 '20 21:10 jayair

@slaplace I've been using serverless-bundle with inversify on several projects, maybe you should try using the current version of both packages.

mpaleo avatar Aug 24 '21 16:08 mpaleo

thanks. I will try during the next weeks and I'll keep you in touch.

slaplace avatar Aug 25 '21 07:08 slaplace