Azure Function ES6 module support

redbird 1 Reputation point

I have a triggered (by Service Bus) Azure Function (v4 with Node 14) which I can get to execute using standard Common JS module. But I need to use ES6 modules, this documentation makes it sound like all I need to do is change the index.js extension to index.mjs then change the wrapping function to use export, but this is not working for me, it's not executing.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,352 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MughundhanRaveendran-MSFT 12,436 Reputation points

    @redbird ,

    Apologies for the delay in response.

    I would suggest you to try the steps specified in this forum as it is the same issue:

    If this doesnt help, try creating a fresh function app project with the same code.

    0 comments No comments