Skip to content

Unexpected error: Undefined constant "AmplitudeExperiment\VERSION" #40

@tnc-tianwen

Description

@tnc-tianwen

Hello there,

I apologize for bothering you. We are using version 1.2.2, and after deploying to production (installed via Composer), we keep encountering an error:

Undefined constant "AmplitudeExperiment\VERSION"

This line causes the error:

        $libraryUser = $user->copyToBuilder()->library('experiment-php-server/' . VERSION)->build();

Could you please help us a bit? Thank you very much! 🙏 🙏 🙏

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions