Skip to content

fix: upgrade @floating-ui/react to ^0.26.0#112

Closed
jules-exel wants to merge 1 commit intomainfrom
fix/floating-ui-issue
Closed

fix: upgrade @floating-ui/react to ^0.26.0#112
jules-exel wants to merge 1 commit intomainfrom
fix/floating-ui-issue

Conversation

@jules-exel
Copy link
Copy Markdown
Contributor

@jules-exel jules-exel commented Apr 10, 2026

Summary

  • Upgrades @floating-ui/react from ^0.25.0 to ^0.26.0 in both dependencies and peerDependencies
  • Updates yarn.lock to reflect the new resolved versions

Problem

@floating-ui/react@0.25.x had an internally inconsistent dependency tree that caused a build error in consuming apps (e.g. agility-cms-manager-app-react):

@floating-ui/react@0.25.4
  ├── @floating-ui/utils        ^0.1.1  → resolved to 0.1.6
  └── @floating-ui/react-dom   ^2.0.2  → yarn resolved to 2.1.x
        └── @floating-ui/dom   ^1.7.4
              └── @floating-ui/utils  ^0.2.10  ← CONFLICT: 0.1.6 doesn't satisfy this

The ^2.0.2 range for @floating-ui/react-dom allowed 2.1.x to be installed. 2.1.x bumped its @floating-ui/dom dep to ^1.7.4, which requires @floating-ui/utils@^0.2.10 — but @floating-ui/react@0.25.4 only declared @floating-ui/utils@^0.1.1. This produced the following esbuild error at build time:

No matching export in "@floating-ui/utils/dom" for import "getFrameElement"
No matching export in "@floating-ui/utils/dom" for import "isTopLayer"

Fix

@floating-ui/react@0.26.0 realigned all internal packages to consistently use @floating-ui/utils@^0.2.x:

@floating-ui/react@0.26.28
  ├── @floating-ui/utils        ^0.2.8   ✓ consistent
  └── @floating-ui/react-dom   ^2.1.2
        └── @floating-ui/dom   ^1.7.4
              └── @floating-ui/utils  ^0.2.10  ✓ satisfied

All APIs used in DropdownComponent.tsx (useFloating, useClick, FloatingFocusManager, FloatingList, useTransitionStyles, etc.) are unchanged between 0.25.x and 0.26.x.

Test plan

  • Verify Storybook builds and DropdownComponent renders correctly

0.25.x had an internally inconsistent dependency tree: it declared
@floating-ui/utils@^0.1.1 but its transitive dep @floating-ui/react-dom
resolved to 2.1.x, which pulled in @floating-ui/dom@1.7.4, which requires
@floating-ui/utils@^0.2.10. This caused a build error in consuming apps.

0.26.0 realigns all internal packages to consistently use
@floating-ui/utils@^0.2.x, eliminating the conflict.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
plenum-ui Ready Ready Preview, Comment Apr 10, 2026 7:39pm

Request Review

@jules-exel
Copy link
Copy Markdown
Contributor Author

closing no longer needed

@jules-exel jules-exel closed this Apr 10, 2026
@jules-exel jules-exel deleted the fix/floating-ui-issue branch April 10, 2026 20:39
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

Successfully merging this pull request may close these issues.

1 participant