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

Cannot read property ref of null #61

Open
AvraamMavridis opened this issue Jul 14, 2020 · 2 comments
Open

Cannot read property ref of null #61

AvraamMavridis opened this issue Jul 14, 2020 · 2 comments

Comments

@AvraamMavridis
Copy link

When using Dialog the page crashes with "Cannot read property ref of null"

React Spring useTransition API has changed https://aleclarson.github.io/react-spring/v9/breaking-changes/#The-ref-prop
Related issue pmndrs/react-spring#990

@HarryBurns
Copy link

Seems bug is also in Toasts.tsx (more precisely in the toasted-notes sub-package), Alert/Message.tsx, Overlay.tsx and Positions.tsx.

And apparently, this bug broke my builds in production, despite the fact that the versions of the packages are fixed. I just ran npm install and it broke. Seems react-spring updated code for the already released version.

Therefore, this issue needs to be fixed as soon as possible.

@HarryBurns
Copy link

As a fast fix, I forced Sancho to use lower version of react-spring package. Works for me.

Just add this to package.json. Yarn required, or NPM + npm-force-resolutions plugin. See Selective dependency resolutions in Yarn

  "resolutions": {
    "sancho/react-spring": "8.0.27"
  }

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