Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@reach/rect error #140

Closed
FawnHux opened this issue Mar 12, 2024 · 1 comment
Closed

@reach/rect error #140

FawnHux opened this issue Mar 12, 2024 · 1 comment

Comments

@FawnHux
Copy link

FawnHux commented Mar 12, 2024

Hello!

Within the past week, when redeploying our HULL-adapted project with Vercel we encountered this error:
Could not resolve dependency: npm ERR! peer react@"^16.8.0 || 17.x" from @reach/rect@0.18.0. I checked your base files and they are the same react@18.2.0 / @reach/rect@0.18.0. It's odd as previously worked fine. For now we have just applied the overide in the package, but good to know if anyone else is experiencing this or has used a different package.

@ndimatteo
Copy link
Owner

Seems like something has degraded with this package, and unfortunately, it's no longer maintained.

I've switched to using @wellyshen's package for measuring refs: https://github.com/wellyshen/react-cool-dimensions

It's a quality package that is suited to replace most instances of @reach/rect 🤘

Hopefully that helps! And as a friendly reminder– I'm working on a new version of HULL (largely a rewrite), and as a result not actively updating the current version unfortunately. Stay tuned!

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

No branches or pull requests

2 participants