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

v0.0.6 failing with syntax error #7

Closed
samirkape opened this issue Jan 3, 2023 · 1 comment
Closed

v0.0.6 failing with syntax error #7

samirkape opened this issue Jan 3, 2023 · 1 comment

Comments

@samirkape
Copy link

Hello,

I'm facing syntax error issue

  Syntax Error -------------------------------------------
 
  node_modules/serverless-apigateway-log-retention/src/serverlessApigatewayLogRetentionPlugin.js:36
          const apiName = this.serverless.service.provider.apiGateway?.shouldStartNameWithService
                                                                      ^
  
  SyntaxError: Unexpected token '.'

Can you help with it?

@deepakthankachan
Copy link
Contributor

Hi, are you on node version 14? Optional chaining was introduced in node v14

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

2 participants