Skip to content

Script failing on TypeError: Cannot read properties of undefined (reading 'OPTIMIZELY_USER_ID') #6

@wcwcaseman

Description

@wcwcaseman

I pulled the aws-lambda-at-edge-starter-kit, then replaced OPTIMIZELY_SDK_KEY with my key and flag name with a flag I have. Then execute npm run build, upload the zip file to aws lambda at edge that I created with the nod 18 template. I then receive the following error when testing the code on aws, TypeError: Cannot read properties of undefined (reading 'OPTIMIZELY_USER_ID').

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions