Skip to content

Serverless framework with Node ES6 modules #712

@RobertSandiford

Description

@RobertSandiford

Hi,

I've just set up serverless with an aws/node/express template, and found that the template was using common JS. I haven't used CJS in quite a while, using ES6 modules instead. I haven't found much info at all on serverless and ES6 modules, so asking to what what the status on support is?

AWS supports ES6 modules, as I've created an AWS service with ESM before. But what I convert the template to ESM I get {"message":"Internal Server Error"} as a response from the home route (this route was working before).

Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions