beyerleinf / esbuild-azure-functions

A ✨blazingly fast✨ builder for Azure Functions powered by esbuild.
MIT License
12 stars 2 forks source link

Error when not using any plugins #7

Closed beyerleinf closed 2 years ago

beyerleinf commented 2 years ago

write should always be set to false.

TypeError: result.outputFiles is not iterable
    at build (/Users/beyerleinf/**********/node_modules/esbuild-azure-functions/build/src/lib/builder.js:52:31)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async file:///Users/beyerleinf/**********/build.mjs:11:1
jeremiah-carlin commented 2 years ago

I just found your project and it solved a nasty set of issues around deploying a pnpm monorepo to a Azure static web app.

I hit the error above but it seemed like a warning because the esbuild bundle completed and I was able to run the functions. I was able to work around the warnings by adding write: false to the esbuildOptions, though the azure functions were deployable even with the warning error that showed up.

Thank you for writing this. Its a really elegant solutions to dealing with node azure functions.

beyerleinf commented 2 years ago

Thanks for the feedback, @jeremiah-carlin! Appreciate it very much :) I'm gonna push an update tonight.

beyerleinf commented 2 years ago

v1.1.1 is now published.