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 and react-dom peerdeps to include v 19 #4513

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

Conversation

GGAlanSmithee
Copy link

I have been using semantic-ui-react (v3 beta) with react 19 for a good while without any issues. Can we please include that version in the react peer deps range so I can avoid having to do --legacy-peer-deps?

I do not update the package version in this PR, but if you can do that and release a new version, that would be amazing.

many thanks 🙏🏼

I have been using semantic-ui-react (v3 beta) with react 19 for a good while without any issues. Can we please include that version in the react peer deps range so I can avoid having to do --legacy-peer-deps?

I do not update the package version in this PR, but if you can do that and release a new version, that would be amazing.

many thanks 🙏🏼
Copy link

welcome bot commented Feb 14, 2025

💖 Thanks for opening this pull request! 💖

Here is a list of things that will help get it across the finish line:

  • Run yarn lint locally to catch formatting errors. This will fix some errors automatically, commit and push any changes.
  • Run yarn test locally to catch errors. This ensures all components still behave as they should.
  • Run yarn start to run the doc site locally and try a few pages, ensuring everything is in good working order.
  • Include tests when adding/changing behavior.

We get a lot of pull requests on this repo, so please be patient and we will get back to you as soon as we can.

Copy link

vercel bot commented Feb 14, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
semantic-ui-react ❌ Failed (Inspect) Feb 14, 2025 8:32pm

Copy link

codecov bot commented Feb 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.53%. Comparing base (e0a42b5) to head (3dcb86d).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4513   +/-   ##
=======================================
  Coverage   99.53%   99.53%           
=======================================
  Files         186      186           
  Lines        3463     3463           
=======================================
  Hits         3447     3447           
  Misses         16       16           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@GGAlanSmithee
Copy link
Author

seems like the Vercel deployment fails because of a too low nodejs version, not sure what you want to do about that.

@kylewatkins1202
Copy link

I'm confused on what the issue is here? Does this project need to be updated to use Node 22 or does workflow need to be updated to use Node 22 for Vercel?

@GGAlanSmithee
Copy link
Author

GGAlanSmithee commented Mar 6, 2025

@kylewatkins1202

The actual issue that this PR solves is that the specified peer-deps does not allow for react 19.

The issue with the deployment of this PR on Vercel seems to be about node.js versions, but I don't know, and I don't think it has anything to do with my PR.

@kylewatkins1202
Copy link

kylewatkins1202 commented Mar 6, 2025

@GGAlanSmithee
This is an odd one to say the least. From lookin at the other PRs they seem to pass the Vercel workflow even though they give the same error, checkout #4512 . It seems this one passed but still got the same error.

After doing some research, I believe that the issue is is that dependencies can cause the Node mismatch to be treated more strictly with Vercel. In this case, React 19 is supported by 18+. This is causing Vercel to say hey 16 is deprecated & the dependencies aren't supported by the Node version.

The issue is most likely with there work flow. However you can override the workflow with

"engines": { "node": "20.x" }
``  
in package.json

@GGAlanSmithee
Copy link
Author

The issue is most likely with there work flow. However you can override the workflow with ...

ok, understood. Do you want me to do that in this PR, given that it's not really related to what I want to change?

React 19 is supported by 18+

Not really sure what this means. As I understand semver and node ^18.0.0 will match all version, so long as the major version is 18. Sorry, I might be misunderstanding you - I just want to be able to run npm i without --legacy-peer-deps in my project 😂

@GGAlanSmithee
Copy link
Author

@kylewatkins1202

do you know if there's anything actionable for me to do here to move this forward? Would be amazing to be able to use semantic-ui-react with react 19 out-of-the-box.

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.

2 participants