Closed kklorenzotesta closed 5 months ago
I am aware of this but I haven’t yet figured out any good fix for it. A workaround you can use in the meantime is to alias this yourself and reference it that way.
I published version 2.1.5 of transformer and cli to npm, resolving this. Thank you for the fix
When a lambda function is used inside a service,
this
is not translated to_this
. For example from a file:The service inside the thing is generated with the following code:
which in this example leads to printing undefined since
this
doesn't refers correctly to the thing