Skip to content

Build fails with @base-ui/react 1.6.0: OTPFieldPreview export removed #843

Description

@rohilsurana

Problem

Fresh installs of @raystack/apsara fail to build since @base-ui/react@1.6.0 was published on 2026-06-18.

Apsara's OTP field component imports OTPFieldPreview from @base-ui/react/otp-field:

[MISSING_EXPORT] Error: "OTPFieldPreview" is not exported by "node_modules/@base-ui/react/otp-field/index.mjs"

base-ui 1.6.0 removed the flat OTPFieldPreview export. The module now only exposes the OTPField namespace. All published apsara versions (up to and including 1.0.1) still use the old import.

Why this hits every consumer

Apsara declares "@base-ui/react": "^1.4.1", so any install without a lockfile pinning an older version resolves to 1.6.0 and breaks. Last working base-ui release is 1.5.0.

Repro

mkdir repro && cd repro && bun init -y
bun add @raystack/apsara react react-dom
# bundle anything importing apsara -> MISSING_EXPORT error above

Suggested fix

Either:

  1. Update the OTP field component to the base-ui 1.6 API (namespace import), or
  2. Cap the dependency range: "@base-ui/react": ">=1.4.1 <1.6" until (1) is done.

Downstream context: this currently breaks @raystack/chronicle fresh installs and its Docker smoke-test CI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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