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

Update react peer dependency ranges to include v19 #1019

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

askoufis
Copy link

@askoufis askoufis commented Jan 21, 2025

Summary

Resolves #1014.

Appends ^19.0.0 to the react peer dependencies in both the @loadable/component and @loadable/server packages. I don't think there's anything about those package's usage of react that would prevent React 19 from being compatible with them.

Test plan

I struggled for a long time trying to get node v12 installed (via mise) as well as installing deps with yarn. Having to install Python 2.x is a pain.

Additionally, I had to replace a reference to what appears to be a private atlassian registry in the lockfile with a reference to the yarnpkg registry.

After a while I gave up on node 12 and ran tests with node 16 (node 18 didn't work either) after manually executing parts of the prepare script. All tests passed on my machine, though the repo is still using React 16 so the tests aren't really a guarantee that React 19 works. I didn't try updating the react dev deps to 19 for fear of more headaches, but happy to try it out if it's deemed necessary to merge this PR.

Overall this was a very unpleasant contribution experience, though in fairness this repo doesn't exactly have regular contributions so it's understandable.

@askoufis askoufis mentioned this pull request Jan 21, 2025
@askoufis askoufis changed the title React 19 peer dep Update react peer dependency ranges to include v19 Jan 21, 2025
@askoufis
Copy link
Author

@theKashey Apologies for the tag. Would appreciate a review on this hopefully uncontroversial PR. Thank you in advance :)

@brianfeister
Copy link

@askoufis @theKashey has this been validated as the only required fix for supporting React 19? My team is being impacted by this as we need to move to React 19. Is loadable abandoned and should I consider it deprecated?

@brianfeister
Copy link

@gregberge curious in the absence of response from others if you know whether loadable should be considered abandoned / deprecated? It's impacting my team where we use it in an embedded runtime

@askoufis
Copy link
Author

askoufis commented Mar 13, 2025

@gregberge @theKashey Would appreciate a review of this PR. It's only 3 lines and should be fairly straightforward. I'm not 100% certain that everything works with React 19, so happy put some more effort into increasing that certainty if it's of any concern.

@StopNGo
Copy link

StopNGo commented Mar 17, 2025

Time to fork?...

@askoufis
Copy link
Author

Time to fork?...

For me this is mainly an optics issue. We maintain a CLI tool that scaffolds web applications. We depend on loadable-components, and would simply prefer not to have React 19 peer dependency warnings showing up during installation. I don't think it warrants a fork.

@douglaszaltron
Copy link

@theKashey @gregberge Could you help us, plx!

@clmsnskr
Copy link

can we merge this please?

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.

React 19?
5 participants