Skip to content

Getting error in deployment while using serverless-lambda-edge-pre-existing-cloudfront plugin #9

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

Closed
shalu1301 opened this issue Aug 25, 2020 · 3 comments

Comments

@shalu1301
Copy link

while deploying in serverless , the error says as :
Serverless plugin "serverless-lambda-edge-pre-existing-cloudfront" initialization errored: Cannot read property 'defineCustomProperties' of undefined

@jiangzhuo
Copy link

Same issue

    this.serverless.configSchemaHandler.defineCustomProperties({
      type: 'object',
      properties: {
        lambdaEdgePreExistingCloudFront: {
          type: 'object',
          properties: {
            validStages: {
              type: 'array',
              items: { type: 'string' },
              uniqueItems: true
            }
          }
        },
      }
    })

the configSchemaHandler is introduced in config schema validation feature from serverless@1.78.0

update serverless package to a newer version may solve this issue.

@nionata
Copy link

nionata commented Sep 8, 2020

@jiangzhuo updating serverless did the trick. Thank you!

@shalu1301
Copy link
Author

@jiangzhuo yes it worked thanks!!

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

3 participants