Skip to content

[BUG] Upgrade to 4.10.0 causes createInstance to return null on cloudflare workers #890

@cupofjoakim

Description

@cupofjoakim

Is there an existing issue for this?

  • I have searched the existing issues

SDK Version

4.10.0

Current Behavior

When declaring a variable with the result of createInstance we get null back.

Expected Behavior

We expect to get a Client instance.

Steps To Reproduce

  1. Create a worker with the 4.10.0 sdk version
  2. Run createInstance
  3. Get that null value

SDK Type

Browser

Node Version

v20.8.1

Browsers impacted

No response

Link

No response

Logs

No response

Severity

No response

Workaround/Solution

Import createInstance from @optimizely/optimizely-sdk/dist/optimizely.lite.min instead of @optimizely/optimizely-sdk

Recent Change

Yes, updating to 4.10.0 broke the expected behaviour.

Conflicts

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions