cloudscape-design / components

React components for Cloudscape Design System
https://cloudscape.design/
Apache License 2.0
2.3k stars 140 forks source link

[Bug]: 'getLogicalBoundingClientRect' is not exported #2392

Closed raurir closed 2 days ago

raurir commented 1 week ago

Browser

No response

Package version

v3.0.611

React version

18.3.1

Description

Attempted import error: 'getLogicalBoundingClientRect' is not exported from '@cloudscape-design/component-toolkit/internal' (imported as 'getLogicalBoundingClientRect').

See details here: https://github.com/cloudscape-design/component-toolkit/issues/66

Source code

No response

Reproduction

No response

Code of Conduct

avinashbot commented 6 days ago

This happens when the version of @cloudscape-design/component-toolkit needs to be updated to match the components package. This method specifically was added in 1.0.0-beta.49 of the toolkit package (though the latest version is 1.0.0-beta.51). Could you verify that this is the version you're using? Running npm ls @cloudscape-design/component-toolkit in your project directory should tell you.

If not, you can try deleting node_modules and package-lock.json and npm install again.

just-boris commented 2 days ago

The answer above says it all. Closing as no more actions needed