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

fix(deps): revert React 18 upgrade back to React 16 #13821

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

agilgur5
Copy link

@agilgur5 agilgur5 commented Oct 26, 2024

Fixes #13410 per #13069 (review), effectively reverting the React upgrade part of #13069

Motivation

Modifications

  • downgrade back to React 16 and revert render changes to use React 16 syntax

Verification

  1. Significantly less warnings during yarn install, only the expected ones from transitive deps or incorrect peerDeps of deps per javascript dependency warnings -- mostly due to incompatible React  #13410 (comment)
  2. Manually tested UI with make start UI=true, functions fine with a few actions.
    1. Significantly less warnings in the browser console, only one expected one from transitive deps
  3. yarn build and yarn lint pass.

@agilgur5 agilgur5 added type/dependencies PRs and issues specific to updating dependencies area/ui javascript Pull requests that update Javascript dependencies labels Oct 26, 2024
@agilgur5 agilgur5 added this to the v3.6.0 milestone Oct 26, 2024
- not all of our deps are compatible with React 18 and so this caused many warnings as well as some bugs
  - those need more updates, primarily breaking changes within `argo-ui` or decoupling the dependency on `argo-ui`

- the main purpose of the upgrade was to be able to upgrade `swagger-ui-react`, which had an alternate React 16 compatible path and has now been removed from the UI codebase entirely
  - so the upgrade is no longer necessary for that purpose

Signed-off-by: Anton Gilgur <agilgur5@gmail.com>
@agilgur5 agilgur5 force-pushed the fix-deps-downgrade-react-revert branch from 51cfc19 to 7bae3c1 Compare November 1, 2024 17:03
@agilgur5
Copy link
Author

agilgur5 commented Nov 1, 2024

Draft until #13818 is merged, as this builds on top of it

This has been rebased on top now

@agilgur5 agilgur5 marked this pull request as ready for review November 1, 2024 17:04
@Joibel Joibel modified the milestones: v3.6.x patches, v3.7.0 Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ui javascript Pull requests that update Javascript dependencies type/dependencies PRs and issues specific to updating dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

javascript dependency warnings -- mostly due to incompatible React
2 participants