aws / aws-toolkit-jetbrains

AWS Toolkit for JetBrains - a plugin for interacting with AWS from JetBrains IDEs
https://plugins.jetbrains.com/plugin/11349-aws-toolkit
Apache License 2.0
757 stars 220 forks source link

Intellij plugin does not recognize ES6-type exports in javascript modules #3199

Open mongito opened 2 years ago

mongito commented 2 years ago

Describe the bug The plugin validation and code code insight do no recognize ES6-type exports in javascipt files.

To reproduce

  1. Create an index.js file with this content
    export const handler = async (event) => {
    return {
        statusCode: 200,
        body: JSON.stringify('Hello from ES6 Lambda!'),
    };
    };
  2. Mark the js files as modules
    {
    "name": "whatevername",
    "version": "1.0.0",
    "type": "module"
    }
  3. Note the absence of valid lambda handler indicator icon on the editor gutter.
  4. Right-click on any existing lambda on the AWS Explorer, click on "Update Function Code"
  5. On the Handler text entry write index.handler (choose any other appropriate options).
  6. See the text entry indicate that "Must be able to locate handler in the project in order to deploy to lambda"

Expected behavior The lambda is updated (code is packaged and uploaded)

Your Environment

Additional context

ArkasDev commented 1 year ago

Did you find a solution? The upload is working via VSC AWS toolkit, but did not work on IntelliJ.

flycompliant commented 3 weeks ago

I assume this is a feature that will not be added? Is there a branch already existing where I can contribute?