Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class private methods not supported #332

Open
Pixcell opened this issue Nov 3, 2022 · 0 comments
Open

Class private methods not supported #332

Pixcell opened this issue Nov 3, 2022 · 0 comments

Comments

@Pixcell
Copy link

Pixcell commented Nov 3, 2022

Hello

I am currently trying to deploy to AWS lambda using serverless and serverless-bundle.
The runtime is set to nodejs16.x

I am getting lots of webpack errors

Bundling with Webpack...
ERROR in ../../../src/orchestrator/pipelineRunner.js
Module build failed (from ../../babel-loader/lib/index.js):
SyntaxError: /home/circleci/project/src/orchestrator/pipelineRunner.js: Class private methods are not enabled. Please add `@babel/plugin-proposal-private-method` to your configuration.
  19 |   }
  20 |
> 21 |   async #finalisePipeline() {
     |   ^
  22 |     const { usage, pipelineName, runUuid, chiefOrchestratorContext } = this.pipelineRun;
  23 |     await recordUsage(usage, pipelineName);
  24 |     await saveManifest(this.pipelineRun);

Since I can't directly fiddle with the webpack config, I am opening an issue here.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant