I just upgraded to 0.9.5 and I get hit with these ...
# help
p
I just upgraded to 0.9.5 and I get hit with these two stopping errors: error: Transforming for-await loops to the configured target environment is not supported yet error: Transforming async generator functions to the configured target environment is not supported yet Reverting back to 0.9.0 lets me run ok again.
f
hmm… looks like esbuild error.. @Jay any insights?
j
Yeah this might be related to setting the target environment — https://github.com/serverless-stack/serverless-stack/pull/115
f
j
@Pål Brattberg Btw, which runtime are you using for your Lambda functions?
p
I'm not changing the default runtime for SST. For serverless project functions I use node14.x (but that should not spill over AFAIK?)
j
Got it. Let me test it and see.
@Pål Brattberg just circling back to this one. We pushed a release that now sets the esbuild target based on your functions or local runtime — https://github.com/serverless-stack/serverless-stack/releases/tag/v0.9.7. Give it a try and let me know if you see those errors again.
p
Just tried 0.9.8 and it worked perfectly, thanks! 👍
j
Awesome!